The question is answered, right answer was accepted
enable/disable child in AnimationClip by code.
Hello. I am trying to generate an Animation clip. And the question is how to enable/disable child elements or their components in AnimationClip. I am trying to add AnimationCurve with clip.SetCurve("Sprite", typeof(SpriteRenderer), "enabled", new AnimationCurve(new Keyframe[] { new Keyframe(0f,0f) })); But result on the screenshot. First curve created by script (which are missed), second by unity interface.
Answer by Dontre · Jan 19, 2016 at 09:39 AM
Okay. I found solution by using "m_Enabled" or "m_IsActive" instead "enabled" or "isActive"
Follow this Question
Related Questions
skip a bit forward in current animation? 0 Answers
How too climb a ladder with the FPS Controller correctly 0 Answers
OVR Walking Animation trigger. 0 Answers