Example #1
0
        public void SCNNode_AddAnimation()
        {
            SCNNode          c   = new SCNNode();
            CABasicAnimation a   = CABasicAnimation.FromKeyPath("hidden");
            NSString         key = new NSString("MyKey");

            c.AddAnimation(a, key);
            CAPropertyAnimation cur = (CAPropertyAnimation)c.GetAnimation(key);

            Assert.IsNotNull(cur);
            Assert.AreEqual(cur.KeyPath, "hidden");
            c.RemoveAnimation(key);
            cur = (CAPropertyAnimation)c.GetAnimation(key);
            Assert.IsNull(cur);
        }