- Home /
How to get the current cursor texture?
So unity obviously has its Cursor.SetCursor()
method to allow you to set a custom cursor... however, what about a GetCursor
method? There is no such thing in the public API, it seems.
On a normal project, the obvious solution would be to just wrap the SetCursor method with something, and keep track of all requests for a cursor from there. However, in this case here I don't have that option. I'm trying to implement a mod for a game, so I don't actually have direct access to the main unity assembly, just API access to it. All the cursor-changing stuff is happening under the hood from my mod dll.
Hence the question. Does anybody know if there is a way to find out what the current cursor in use is?
For more context, what I'm trying to do is to make a mod so I can force games to use software cursors. Ideally, I'd watch for any changes to the cursor, and make a new one after it with the force-software-cursor option set, using the same texture.
This is to sidestep a longstanding issue with the Steam controller and steam streaming, which causes an intolerable amount of mouse lag. I found that software cursors don't have that issue, so I decided to take matters into my own hands. (because you know I have all this free time and all :P )
Many thanks in advance for any ideas, suggestions and brainfarts.
Cheers
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 Resize? 1 Answer