Hi!!!
I was wondering what is the script for OnMouseDown an object and it will jump to another new scene in javescript?
please help! thanks!!!
Hi!!!
I was wondering what is the script for OnMouseDown an object and it will jump to another new scene in javescript?
please help! thanks!!!
/Attach this to what ever you want to click on
to switch your level/
function OnMouseDown(){
Application.LoadLevel("LevelName");
}
If its a GUI object you could do it simply using
Application.LoadLevel (“HighScore”);
// Load the level named “HighScore”.
If its something like a 3d model or mesh, you’ll have to go a bit complicated by using Ray and Raycast hit.
You’re Welcome.