728x90
Mouse Cursor
-
Unity 마우스커서 변경3D/Unity 2022. 10. 24. 10:51
Unity 마우스커서 변경 using UnityEngine; public class Player : MonoBehaviour { [SerializeField] Texture2D cursorHover; [SerializeField] Texture2D cursorNormal; void Start() { Cursor.SetCursor(cursorNormal, Vector2.zero, CursorMode.ForceSoftware); } private void OnMouseOver() { Cursor.SetCursor(cursorHover, new Vector2(cursorHover.width/4,0), CursorMode.ForceSoftware); print("mouse over"); } private voi..