- Home /
Getting custom mouse cursor to display above GUI and default layer
In my unity game, I created a custom mouse pointer, which is a GameObject (GUITexture). I am able to manipulate other game objects with this mouse pointer (ex. highlight and select object) in the default layer. I also created a new GUI layer and GUICamera, so that my GUI controls are displayed above the default layer.
Currently I have 3 cameras and 3 layers:
MainCamera - depth 0, culling mask is everything except GUI layer and top layer
GUICamera - depth 1, culling mask is GUI layer, all GUI controls are in GUI layer
TopCamera - depth 2, culling mask is top layer, the only object in this layer is mouse pointer
Clear flags for both GUICamera and TopCamera are set to depth-only.
My problem is, that I cannot get the custom mouse pointer above GUI controls. Can anyone help me with this? Perhaps I overlooked something?
Your answer
![](https://koobas.hobune.stream/wayback/20220613151653im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
SplitScreen shooter with Viewmodels and PlayerModels without so many layers? 1 Answer
Camera layering : UI shader is cleared by second camera with Depth Only flag 1 Answer
Help I cant use multiple cameras with layers. [Solved] 1 Answer
How can I change the layer of a GameObject? 1 Answer
Make GameObjects dynamically visible/invisible for certain cameras 1 Answer