How do i reference the animator component of an active child gameobject from the parent?
Can anyone help? I have a parent game object in my heirarcy called "player" and a few child gameobject each with an animator attached to it What I want is, I want to reference the animator component of the only active child in my player component from the parent itself. How do i do that. Is it possible? I want to create a script that references the animator of the active child only.
Note: there should be only 1 active child
Your answer
Follow this Question
Related Questions
How can I move a gameobjects box Collider with another asset? 0 Answers
Confused about local, world coordinates when it comes to child objects... 0 Answers
How to access the weight of Constraints of a Rig (Animation Rigging Package) 0 Answers
destroy other child objects when the parent counts more than 1 child 1 Answer
Find a rigidbody's root parent then find its child by name 1 Answer