- Home /
Question by
salavadi · Oct 17, 2017 at 07:00 AM ·
c#gameobjectcomponentactivatedeactivate
How to activate/deactivate a component(Animator) when a specific game object was activated
I want to add animator component to a game object based on another game object's active status (controlled in a different script file). I'm a designer and I barely write C# code. But I started to understand the code. Can someone help me with challenge I'm facing? Appreciate your help. Thanks in advance.
Comment
Your answer
Follow this Question
Related Questions
Activating/Deactivating GameObject Problem :( 3 Answers
Disabling A Script on a GameObject From a Different Script 2 Answers
Add component to a gameobject created through code. 1 Answer
Is it OK to use public accessers for unique gameobjects (C#) ? 3 Answers
Find a Component/GameObject Using an Interface Reference 2 Answers