Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Clicking a cube to load scene

$
0
0
ok i have a cube with a script to make it float in water and i want to make it so when i click on the cube with a right click it loads a new scene no matter what i do it wont work ive looked at all other threads related to this and read through the script reference but it still wont work this is what i put onto the cube function OnMouseDown() { if (Input.GetButtonDown ("Fire2")) { Application.LoadLevel("GameScene"); } }

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>