官方API:https://docs.unity3d.com/ScriptReference/Cursor.SetCursor.html
图片的格式:

public Texture2D ClickedCursorImg;
Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
Cursor.SetCursor(ClickedCursorImg, Vector2.zero, CursorMode.Auto);
官方API:https://docs.unity3d.com/ScriptReference/Cursor.SetCursor.html
图片的格式:
public Texture2D ClickedCursorImg;
Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
Cursor.SetCursor(ClickedCursorImg, Vector2.zero, CursorMode.Auto);
本文标题:unity 动态改鼠图案
本文链接:https://www.haomeiwen.com/subject/gmxtahtx.html
网友评论