- Home /
This question was
closed Sep 28, 2012 at 08:19 PM by
whydoidoit for the following reason:
Duplicate Question
Input.GetMouseButtonDown(0) problem
i dont know what happen to my unity. before, the game object must be click to trigger the effect but for some reason, it trigger whenever I click anywhere? what happen? pls help... :(
same thing happens even if I created a new project...
Comment
Check the size of the colider on the gameobject, or other invisible aspects/components of the gameobject?
If not that then throw us some code to look at.
Answer by Angelo-DanTe · Sep 28, 2012 at 08:31 PM
it could happen because your "Input.GetMouseButtonDown(0)" is not int the "OnTriggerEnter()" "i guess", but the best is building a raycast to do this