예제 #1
0
 public static void StopAllAnimations(this SCNNode node)
 {
     node.EnumerateChildNodes((SCNNode child, out bool stop) =>
     {
         stop = false;
         foreach (var key in child.GetAnimationKeys())
         {
             var animationPlayer = child.GetAnimationPlayer(key);
             if (animationPlayer != null)
             {
                 animationPlayer.Stop();
             }
         }
     });
 }