- Home /
How to assign "data" in script at runtime
For my iOS game, I'm creating a pool of empty game objects and preventing from using instantiate and destroy functions. I am able to add the script "BoneAnimation" to each empty game object during runtime.
However, I cannot figure out how to "drag" the Bone Animation Data into the Animation Data via code during runtime. Can someone hint me how to do it? (I'm using Smooth Moves by echo17)
Thanks.
massive article on this !
http://answers.unity3d.com/questions/321762/how-to-assign-variable-to-a-prefabs-child.html
Thanks for your quick reply! Let me quickly go read that through. :)
Your answer
Follow this Question
Related Questions
Which is better: script or animation (which needs to change with scripting)? 1 Answer
Unity thinks my animation is not attached, but it is. 2 Answers
How can I increase the value of a variable? 1 Answer
Add keyframe in existing animation at runtime 0 Answers
Bake Animation during Run-time in Unity 2 Answers