- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
Anthony-Adam · Feb 26, 2015 at 11:54 AM ·
texture2dcursor
Cursor.SetCursor not working in Unity 4.6
Hey Guys,
I am working on a Hidden Object Game and i need the cursor to change to a hand when it hovers over a Object. So I added the Event Triggers component to the Object and selected OnPointerEnter as the event and set the function that changes the cursor to a hand when it hovers but this does not seem to work. I am not sure if there is anything wrong in the code or if it only works in OnMouseEnter or the real issue.
My Code :
public Texture2D tex;
public void Hover ()
{
Cursor.SetCursor (tex, Vector2.zero, CursorMode.Auto);
}
Comment
Your answer

Follow this Question
Related Questions
SetCursor WebGL doesn't work 1 Answer
REDUCE custom cursor size? 0 Answers
Can't load Mouse Cursor texture 1 Answer
Using Sprite for Custom mouse Cursor using SetCursor 2 Answers