Hi guys,
I’m a Unity newbie… And I have a problem with OnMouseEnter() script: it works good when my cursor is in an object near the camera, but it didn’t works if the object is far away. What can i do? Here is my code:
var cursorTexture : Texture2D;
var cursorMode : CursorMode = CursorMode.Auto;
var hotSpot : Vector2 = Vector2.zero;
function OnMouseEnter(){
Cursor.SetCursor(cursorTexture, hotSpot, cursorMode);
}
function OnMouseExit(){
Cursor.SetCursor(null, Vector2.zero, cursorMode);
}