I want to set up an option where in another scene (which I made) i just click if I want to have the cursor changed or not. I already set it up to go the menu and everything. But how do I get it to change another scene. Here is the cursor code.
var cursorImage : Texture;
function Start() {
Screen.showCursor = false;
}
function OnGUI() {
var mousePos : Vector3 = Input.mousePosition;
var pos : Rect = Rect(mousePos.x,Screen.height - mousePos.y,cursorImage.width,cursorImage.height);
GUI.Label(pos,cursorImage);
}
Can anyone help?
How to get it to change to another scene, or have the mouse change its appearance in another scene?
You are better off using IF-ELSE statements and reading the documentation for the Application runtime class. Follow this link: Unity - Scripting API: Application.
The index-number of your scenes can be found in-editor by clicking File > Build Settings then checking off the levels you want to include in your build, then the scenes will automatically be assigned a number (found to the right of the scene-name in that list). That number is what tells Unity (or your code for that matter) which level was loaded last (if you use Application.loadedLevel) and therefore allows you to create different behaviours for different scenes.
Hope this helped, good luck!