Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //****** Donations are greatly appreciated. ******
- //****** You can donate directly to Jesse through paypal at https://www.paypal.me/JEtzler ******
- var yourCursor : Texture2D; // Your cursor texture
- var cursorSizeX : int = 16; // Your cursor size x
- var cursorSizeY : int = 16; // Your cursor size y
- function Start()
- {
- Screen.showCursor = false;
- }
- function OnGUI()
- {
- GUI.DrawTexture (Rect(Event.current.mousePosition.x-cursorSizeX/2, Event.current.mousePosition.y-cursorSizeY/2, cursorSizeX, cursorSizeY), yourCursor);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement