Hello everyone, I want to make a small point in the center of the screen, like a pointer, I used this script:
var yourCursor : Texture2D; // Your cursor texture
var cursorSizeX : int = 20; // Your cursor size x
var cursorSizeY : int = 20; // Your cursor size y
function Start()
{
Screen.lockCursor = false;
Screen.showCursor = false;
}
function OnGUI()
{
GUI.DrawTexture(new Rect(50, 50, Screen.width/2, Screen.height/2), yourCursor);
}
But it comes out like this: (the point I made is 20x20 px)
What did I do wrong?