Trying to do some basic stuff like mouseover. I see how to get the mouse position, but how to i tell if the mouse is intersecting an object on the screen?
The easy way is like this. Code (csharp): function OnMouseOver () { renderer.material.color = Color.red; } You have to attach the script to the Object you want the mouse over event to receive. The object has to have a collider otherwise it wont work. If you want full control you can use raycasting for this. Take a look at the Script Tutorial folder. It covers script examples like this. eg. /Users/Shared/Unity/Script Tutorial/Assets/LaunchProjectileMouse.js