public class Main : MonoBehaviour { public Texture2D cursorTexture;//图片 public CursorMode cursorMode = CursorMode.Auto; public Vector2 hotSpot = Vector2.zero;//以左上角为目标的偏移量 void Start() { //设置光标 Cursor.SetCursor(cursorTexture, hotSpot, cursorMode); } }