I have also tried retrieving all animations and setting the repeatCount = 1 or even to 0 let url = NSBundle.mainBundle().URLForResource("Scenes.scnassets/test4", withExtension: "dae") I have tried removing all animations as follows: sceneView.scene?.rootNode.removeAllAnimations() The scene loads correctly and the animation plays on loading as required, but in a continuous loop. Let scene = SCNScene(named: "Scenes.scnassets/test4.dae") Here's the loading code where sceneView is my SCNView: //Load the scene and play Whatever I have tried, the animation repeats in a continuous loop whereas I only want it play once and then stop. I am using SceneKit to load a Collada (.dae) file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |