I've got 2 buttons that occupy some of the same space(overlap - both are visible), and the wrong one is on top. I've tried setting rendering priority, but it doesn't seem to be working. I've tried changing things around, and I get varying results, but nothing that's what I want. Sometimes it puts the buttons behind the dialog, sometimes it puts them in front of the picture attached to them. Sometimes it doesn't do anything.
Anyone know how to micromanage which dialog button on top. Specifically, the button that was NOT the last one clicked should be on top.
i believe it renders by default by the order you make them in. so the one you want in the background i was code it before the other and that should layer it automatically.
They're always ordered in the order they were created. No matter what. An option for you would be destroying dialog item, recreate it, reset variable to it. For eg: When you clickeded something, destroy and create that button, then destroy all other button and re create them (maybe in your default order)
Dialog - Set (Last created dialog item) Render Priority to Render Priority for (Player group(Player))
This is what you are looking for, you do not have to destroy it and re-create it. all rendering priorities of the dialog boxes are default at 512. 0 pust a dialog to the back and setting to 512 will bring it to the front. Back 0 -> 512 Front.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I've got 2 buttons that occupy some of the same space(overlap - both are visible), and the wrong one is on top. I've tried setting rendering priority, but it doesn't seem to be working. I've tried changing things around, and I get varying results, but nothing that's what I want. Sometimes it puts the buttons behind the dialog, sometimes it puts them in front of the picture attached to them. Sometimes it doesn't do anything.
Anyone know how to micromanage which dialog button on top. Specifically, the button that was NOT the last one clicked should be on top.
i believe it renders by default by the order you make them in. so the one you want in the background i was code it before the other and that should layer it automatically.
@ezbeats: Go
But I want the one that was clicked last to move to the background.
@SquarelyCircle: Go
They're always ordered in the order they were created. No matter what. An option for you would be destroying dialog item, recreate it, reset variable to it. For eg: When you clickeded something, destroy and create that button, then destroy all other button and re create them (maybe in your default order)
@progammer: Go
Dialog - Set (Last created dialog item) Render Priority to Render Priority for (Player group(Player))
This is what you are looking for, you do not have to destroy it and re-create it. all rendering priorities of the dialog boxes are default at 512. 0 pust a dialog to the back and setting to 512 will bring it to the front. Back 0 -> 512 Front.