- Home /
Question by
navatek_stephanidiep · Sep 07, 2016 at 12:16 AM ·
uicursorcursor-customization
Resizing cursor to screen size
I want to have the cursor scale with the screen size.
My cursor was imported from a PNG to a sprite. I added a function to scale with screen size and put that function in Update().
This is the line of code that is causing issue:
currentCursor.Resize ( ( int ) ( cursorScreenRatioWidth * Screen.width ), ( int ) ( cursorScreenRatioHeight * Screen.height ) );
The error:
"Can't resize to a compressed texture format."
Comment
Your answer
Follow this Question
Related Questions
How Do I Lock the Cursor to the Center of the Screen? 1 Answer
How to prevent mouse lag/latency for custom cursor? 0 Answers
How Can I Lock The Cursor Position? 1 Answer
Cursor Resize? 1 Answer
Cursor appears dark in game 0 Answers