- Home /
cursor appear as a white quare when using hardware cursor
I used this code (everything is working fine with it) to change my cursor into a custom cursor to be controlled by hardware to prevent lag.
var cursorTexture : Texture2D; var cursorMode : CursorMode = CursorMode.Auto; var hotSpot : Vector2 = Vector2.zero;
function OnMouseOver () { Cursor.SetCursor(cursorTexture, hotSpot, cursorMode); }
I have attached the image I am trying to use with this post.
This cursor shows normally when using software mode on windows 7 but not when using hardware mode... is there a way to solve this issue?
I am using unity 4 free version.
Answer by raine_l · Jan 08, 2013 at 03:37 AM
check then cursor texture type, it need to be type "Cursor", and the texture cannot be placed in the "Resources" folder, so I only can set all the cursor texture by the monobehavior
Your answer
![](https://koobas.hobune.stream/wayback/20220613085213im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Cursor.SetCursor() not working inside Start() 3 Answers
Mouse cursor is giant in Mac builds. 1 Answer
Cursor disappearing in webplayer 1 Answer
Error with mouse cursor. 1 Answer
Help with rotation! 0 Answers