- Home /
Default Cursor not working in executables
I have version 5.1.2 and tried to custom the Default Cursor via Player Settings. I draged a png image (65x65 pixels), tested it in the Unity envirorment and it worked fine. The problem came when I built the project: insted of the image I picked, it was displaying a black square as cursor.
If you need any more details, don't doubt to ask.
Answer by nullgobz · Jul 31, 2015 at 03:51 PM
Try changing the texture to "cursor" on the texture itself. If the default texture in player settings is not working then try setting it in code. Still make sure the texture is set as a cursor.
public Texture2D cursor;
public Vector3 positionOffset = Vector3.zero;
Cursor.SetCursor(cursor, positionOffset, CursorMode.Auto);
Also make sure that your texture is set as point if you want a crisp cursor.
Your answer
![](https://koobas.hobune.stream/wayback/20220611233859im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
PNG or TGA32 for semitransparent material 2 Answers
best way to show iphone purchased assets 0 Answers
Wierd Screen Shot Problem, texture of screen shot looks different in editor and in system. 1 Answer
[C#] put an image in the center of a mesh (no repetition) 1 Answer
Create PNG from dynamic mesh 1 Answer