- Home /
Unknown Identifier for OnMouseUp
Im trying to make it so when i click an object in my game it takes me to my other world. heres there script im using now. im am very new to scripting and i wouldnt be suprised if i did this wrong. Its in javascript
if(OnMouseUp) [ Application.LoadLevel (1) ];
It says OnMouseUp is an unknown identifier
Comment
Best Answer
Answer by Kourosh · Apr 13, 2011 at 01:43 AM
function OnMouseUp(){
Application.LoadLevel(1);
}
Apply it to a gameobject with collider to receive your mouse clicks.
Your answer
![](https://koobas.hobune.stream/wayback/20220613122413im_/https://answers.unity.com/themes/thub/images/avi.jpg)