Skip to content

Game.UI.Widgets.Divider

Assembly: Assembly-CSharp (game assembly where UI widgets are defined)

Namespace: Game.UI.Widgets

Type: public class

Base: Widget

Summary:
A minimal UI widget that represents a visual divider/separator used to separate groups of UI elements in layouts. The class itself declares no members and relies on the Widget base class (and the UI system's styling/theme) for rendering and layout behavior. Use this when you need a simple horizontal or vertical separation line between controls in a custom UI.


Fields

  • None (no private fields declared in this class)
    This class contains no explicit fields; any state or rendering is handled by the base Widget or by styles applied externally.

Properties

  • None (no properties declared in this class)
    Inherited properties from Widget are available (layout, visibility, transforms, etc.), but Divider does not add new ones.

Constructors

  • public Divider()
    The default parameterless constructor is the implicit constructor generated for this class. It performs no additional initialization beyond the base Widget constructor.

Methods

  • None (no methods declared in this class)
    All behavior comes from the Widget base type or from external styling; override Widget methods in a subclass if you need custom behavior.

Usage Example

// Create and add a divider to a container (pseudo-code; container API may vary)
var divider = new Divider();
// Optionally configure layout or style on the divider via inherited properties or style classes:
// divider.ClassName = "my-divider"; // if the UI system supports class-based styling
parentContainer.Add(divider);

Notes: - To customize appearance (thickness, color, orientation), apply UI styles or subclass Divider and override rendering/layout methods from Widget. - Divider is intended as a lightweight, declarative separator; it does not provide interactive behavior.