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

I Cant seem to get a Object to detect A Mouse Click while using A First Person Controller

$
0
0
My Game Use's the first person Controller and I can't get to recognize a mouse Click. If i take the Cube out of my controller it works but if a add to to move with the controller i can't seem to get it to see a mouse click on my Cube. here is what i got so far var Object1 : Transform; var CHK : boolean = false; function OnMouseOver() { if(Input.GetMouseButtonDown(0)){ CHK=true; print("Mouse Button 1 was Clicked") } } any help would be nice

Viewing all articles
Browse latest Browse all 1875

Trending Articles



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