Description
The Hidden
field of the OverflowMode
enumeration specifies that any content that overflows the bounds of a UI panel will be completely hidden from view. This is useful when you want to ensure that no content spills outside the designated area, maintaining a clean and uncluttered interface.
Usage
Use OverflowMode.Hidden
when you want to prevent any overflow content from being visible. This is typically used in UI components where maintaining a strict layout is important, and you do not want users to see or interact with content that extends beyond the panel's boundaries.
Example
// Example of setting the overflow mode to Hidden for a UI panel
var panel = new UIPanel();
panel.Overflow = OverflowMode.Hidden;