- Home /
Using variables in animation
I have an animation which makes my game objects shrink. I want all my game objects' shrinkage amount to depend on their distances from the center of my map. How can I link my keyframes to specific variables in my script? Thanks
Comment
Rather than using a keyframed approach, have you considered setting it up on a curve in the animation window?
Sorry for late reply but what I wanted was to be able to set keyframes' values during runtime via script.
Answer by MagicoCreator · Jul 14, 2014 at 09:13 AM
if you put your animation in an animator, set the animation speed to 0, you can use animator.Play to jump to given time