public var target3 : GameObject;
function OnGUI () {
GUI.Box (Rect (10,10,100,90), "Loader Menu");
if (GUI.Button (Rect (20,40,80,20), "camera1")) {
target3 = GameObject.Find("target3");
target3.animation.Stop();
}
the target 3 is a Gameobject in my scene which is a child of another gameobject, the problem i am having is that whenever i go to access the target3(through script) it removes itself from the inspector(I.E, it says Non (Game Object)
any idea how to fix this?