- Home /
Is there a way to add another slot for a script in the Inspector?
If I wanted a script to reference different scripts depending on the instance of the object it's used in how would I do that?
Is there a way to make it work like the way a Public.GameObject works inside of the inspector?
Comment
Best Answer
Answer by LightSource · Apr 10, 2013 at 10:29 PM
Accessing other gameObjects:
http://docs.unity3d.com/Documentation/ScriptReference/index.Accessing_Other_Game_Objects.html
Accessing other components:
http://docs.unity3d.com/Documentation/ScriptReference/index.Accessing_Other_Components.html
GameObject.GetComponent:
http://docs.unity3d.com/Documentation/ScriptReference/GameObject.GetComponent.html
Google: