Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

I'm causing the following error while making a javascript in unity so the error is (Assets/scripts/PickUp.js(1.23): UCE0001: ';' expected. insert a semicolon at the end.)

$
0
0
The code is: 1 var target : Transform 2 3 function Update () { 4 } 5 6 function OnMouseDown () { 7 this.transform.position = target.position; 8 this.transform.parent = GameObject.Find("FPSController").transform; 9 this.transform.parent = GameObject.Find("FirstPersonCharacter").transform; 10 } 11 function OnMouseUp () { 12 this.transform.parent = GameObject.Find("FPSController").transform; 13 this.transform.parent = null; 14 } any help would be greatly appreciated.

Viewing all articles
Browse latest Browse all 1875

Trending Articles



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