- Home /
Cursor Resize?
Is there a way to resize the cursor? No matter what I set the image resolution at my cursor is stuck at 32x32. This is far too small for the game I'm making.
Answer by exploringunity · Jun 11, 2020 at 06:00 PM
Have you tried using CursorMode.ForceSoftware
?
Example:
using UnityEngine;
public class CursorManager : MonoBehaviour
{
public Texture2D cursorTex;
void Awake() { Cursor.SetCursor(cursorTex, Vector2.zero, CursorMode.ForceSoftware); }
}
Here's a massive 663x720 cursor just to demo:
Quick follow-up, my cursor is much darker in game than in the inspector/photoshop. I tried turning all camera effects off and it didn't make any difference. Do you know how I can fix this?
I'm not sure, sorry! I don't think I've run into this before... This problem sounds different enough from cursor resizing to merit its own question, though. Can you write a new question with some screenshots of what you're seeing vs. expecting to see, perhaps with the inspector settings of the texture of the cursor you're using, etc?
I am seeing the same thing: hardware (auto) cursor$$anonymous$$ode renders the cursor textures as expected, but ForceSoftware cursor$$anonymous$$ode renders the cursor textures much darker. Unfortunately I haven't found a solution yet.
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
Resizing cursor to screen size 0 Answers
Cursor appears dark in game 0 Answers