I got UI panel and some buttons on it and i have crosshair(sprite) what moves with mouse move.
Problem is that crosshair is behind UI Panel/buttons…how i can make this crosshair(sprite) on top of all UI Panels/buttons.
I tried sortinglayers for crosshair but it seems it doesnt have any affect to UI:s object…need some advices
Found that ineed to change Canvas render mode to Screen Space - Camera or Wordl Space + add sorting layer
Im not sure if i get problems later but im using this UI Panel/button in my Games Menu system
Can someone explaint what are difference in UI Canvas with Screen Space - Camera, Screen Space - Overlay or World Space.
the names are pretty specific, one uses a camera to render in screen space, one is overlayed ontop of everything in screen space, and one is just in world space and you do what you’d like.
1 Like