- Home /
Animation doesn't affect the new instantiated object.
I have an animation, that will animate the position and rotation of a WeaponPlace gameObject and a int variable called layer in script from WeaponPrefab gameObject. As you can see, there is no WeaponPrefab gameObject, until I press play and the object will be instantiated. When the object have been instantiated, the animation's (Missing!) message disappears. When I play the animation ingame, it affects only the position and rotation of WeaponPlace gameObject and still not affects the script variable. What kind of issue is this and how can i fix it?
Also, if I am alredy ingame and I will check and uncheck the Foot IK on my animation, the animation will be played perfectly. When I exit the game mod and press play again, the issue will still be there.
Your answer
Follow this Question
Related Questions
Cloning an object around the center 0 Answers
Instantiate rotation is not correct, why? 1 Answer
Prefab and creating objects in script help 1 Answer
Is it possible to adjust an Objects pivot without affecting any of the child objects? 1 Answer
Can the animation editor create local rotational data? 3 Answers