- Home /
How can i play children's animation?
I want to play two different animations of two children of a cube with a c# script assigned to a this cube. I have try this: "public GameObject other; other.animation.Play("Default Take");" but not works! Thanks for help!!!
If you place the animation control calls in to a function you can use GetComponent to access that script and fire the function from anywhere.
I would recommend you to use Animator ins$$anonymous$$d of Animation component simply because if you put Animator with the controller in your parent object, then your child objects can be accessed via AnimatinEditor
Your answer
![](https://koobas.hobune.stream/wayback/20220613160426im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Make a simple tree 1 Answer
Children won't animate 2 Answers
stop animations when an other animation is playing 2 Answers
Why does Parented FBX keep transforming to 0,0,0 when i press play? 1 Answer