Inserting a new GUI element should inherit Z-Index

When Inserting a new GUI element (For instance putting a TextButton into a Frame) the new GUI element should take it’s parents’ Z-Index.

Example:

  • Player puts new Button into a Frame with a Z-Index of 6
  • The Button is now parented into the Frame and takes the Frame’s Z-Index, so now the Frame has a Z-Index of 6

This is not only valuable to developers as it saves time, but also something that can potentially help out younger/less experienced developers.

24 Likes

This would definitely help out. Although it’s also kind of a band aid fix for the messy zindex system in general.

It would be a lot nicer to have a setting on ScreenGui that made zindex relative to the parent (allowing negative indices) since 99.99% of the time this is the behavior you want.

14 Likes

Support.

We have an API in the works which will make it configurable per-GuiLayerCollector whether ZIndex is relative to its parent.

7 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.