
It would be a nice feature, and I don't see it taking anyone more than 4 hours to add into the GUISkin as an additional option. I'd of expected to search the docs, not the Q&A.Īgain.
#Unity add custom mouse pointer how to#
Searching the forums to figure out how to change the cursor, was also a bit of an odd thing. is usually part of most game engines, in pre 1.x releases. which is why the coded example is more flexible, but having a standard 'out of the box' way to change the cursor through the API. Having different ways to accomplish the same thing, is always nice.

I experimented rather quickly with a few different things, most of them didn't work as I'd expect them too - which is why I proposed this so clicking the button would still be possible, but the cursor would be below the button rather than above it? isn't the order in which the texture is drawn relevant? If the texture is drawn before a button, the texture renders below it. with the advent of the new GUI classes in 2.x. I really don't see why this feature is, in any way, complex or valuable enough to outweigh any of the mentioned cons. This, however would inevitably reduce the usefulness of the feature as your possibilities are inevitably limited by added simplicity. An API layer implementation should add something else than the example above and judging by your statement, I'd say you would like to see a simpler access. Adding this to the API will add complexity to it (big con if this leads to a pattern of tossing loads of small niceties into the API in stead of staying restricted to larger multi-purpose features). Careful when making a custom mouse icon though.

The ScreenGui that contains the custom mouse objects should have the highest DisplayOrder of any of your Guis. If you merely wish to add a highlighter to your mouse cursor or use a third-party app to give you more highlighting options, then there.
#Unity add custom mouse pointer windows#
You need to create a custom mouse icon using Gui objects for this. How to add a customized mouse cursor theme to Windows 10. Implementing this will reduce the time otee has to spend on implementing other stuff (not much time though, so not a big con). The Gui Engine internally overwrites the mouse icon with the hover cursor and has higher precedence when setting it. You get custom cursors without having to write the lines above. How to hide and show the cursor, and how to change the cursor sprite from a script. Click to expand.I doubt that otee will expand the unity API with new types just to support a feature which could already be implemented with the existing API as simply as this one can. How to change the cursor in Unity In this tutorial we will have a close look at the mouse.
