- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
Alp-Giray-Savrum · Sep 03, 2013 at 04:39 PM ·
camerascenedisableenablestatic-vars
Disable gameobject at other screen with code ?
Hello, I've got 2 scenes, When i press Home Button, The Camera in homebutton should be disabled and second camera should be enabled ? I'm using Prefab method for this but, It didn't work :( So what shall i do ? here's my code ;
#pragma strict
var mainCam : GameObject;
var Logo : GameObject;
function Start () {
}
function OnMouseEnter () {
mainCam.active = false;
Logo.active = true ;
Application.LoadLevel(1);
}
when I turn variables to "Static" then, I can't define Which camera is the object :( So help me please..
Comment