I am making a menu for my game, and I do not want to use the built in Unity Buttons. Instead I am making my own, and I want to know how to check if a mouse is over a model, and when it is clicked on a model.
1 Answer
1You can use the create OnMouse*() functions in your scripts. You can find a list of all of these functions here. With this method, you will need a script attached to each button object. If you need to do it more centrally, you can use Physics.Raycast().