Mouse is under the button of gui- question about gui button(SOLVED)

Hello I use in script gui.set_render_order(0) but cursor who is in z = 1 is still under the button of the gui. how I can make it be above gui button. Thanks

This will control the render order if you have multiple gui components.

If the cursor is a sprite component then that is to be expected. The default render script draws sprites, particle effects etc first and in a separate pass it draws the gui.

You can use a gui node as the cursor instead or use DefOS to set a custom hardware cursor.

1 Like

Ok I ll try make it as a gui . Thanks

One more question about gui button, how can make when popup button is on player must press only on it and not around? I try do it with Boolean at pressed but didn’t worked. Thanks

I think I made it work in a way when I made the cursor as gui. Or at least press just wait the popup on. So in a way works how I want. Better maybe will be not press elsewhere … Anyway I ll put as solved. thanks