Add a dedicated feature to ignore GUI Layout flow

Currently, all GuiObjects are affected by UI layouts (grid layout, list layout, etc.) unless parented to a Folder. Any items under a folder even if a layout exists ignores the layout:

As seen in the image, the red frame does not follow the layout flow of the UIListLayout, and can be positioned freely.

The problem is that there is no dedicated documentation specifying this behavior (to my knowledge). This feature is useful in many different situations, and is also a feature in css for websites (position: absolute). As we’re seeing a clear pivot towards webdev-type features, this is a clear next step.

Possible solutions:

  • add documentation to the Folder instance to document this behavior
  • add a new instance IgnoreLayout that ignores layouts in the parent container
  • add a property IgnoreLayout to all GuiObjects

For a more fleshed out feature, a property that uses an enum on each GuiObject would make more sense. This allows us to do something like:

  • Enum.LayoutBehavior.Relative to simulate position: relative (default behavior)
  • Enum.LayoutBehavior.Fixed to simulate position: fixed
  • Enum.LayoutBehavior.Absolute to simulate position: absolute
  • … and other css layout properties

This drastically affects my experience because I often find myself using many workarounds to simulate this behavior, or rely on undocumented behaviors that may not work in the future.

6 Likes

Wouldn’t it be more ideal if this documentation was placed on UI objects/UI articles instead? I doubt many developers would specifically think to check Folder’s documentation for behavior specific to one category of instances.