iosswiftswiftuiscenekit

Fetching the animations added to a SCNNode


Am trying to get the animation added to a SCNNode for a give key. Looks like the function is deprecated (https://developer.apple.com/documentation/scenekit/scnanimatable/1524020-animation) and no alternate is provided in documentation.

Am trying to create an animation editor and all modifications to the node are added as CAKeyframeAnimation which needs to be then fetched to modify.


Solution

  • The replacement is -animationPlayerForKey:.