Class ScyllaUIHStack
Horizontal stack container. Lays out children left-to-right along the X axis with configurable alignment, cross-axis alignment, padding, spacing, and per-axis sizing modes. Extends ScyllaUIStackBase with a fixed horizontal orientation.
Inheritance
Inherited Members
Namespace: Scylla.Core.Util.UI
Assembly: ScyllaCore.dll
Syntax
[AddComponentMenu("Scylla/UI/Layout/Horizontal Stack")]
public sealed class ScyllaUIHStack : ScyllaUIStackBase, ILayoutElement, IScyllaInspectorChangeHandler
Remarks
Children may carry ScyllaUIFlexElement to specify per-child grow and shrink weights, minimum and preferred sizes, fit mode, and an ignore-layout flag. ScyllaUISpacer can be inserted between children as either a flexible spacer that consumes free main-axis space or a fixed-length spacer.
Nested ScyllaUIStackBase children are solved recursively against
the slot dimensions allocated by this stack. Assign a
ScyllaUILayoutStyle to the Style property to share
padding, spacing, and alignment presets across multiple stacks.
For a stack that switches orientation at runtime based on the parent viewport's aspect ratio, use ScyllaUIAdaptiveStack instead.
Properties
IsHorizontal
Always true for ScyllaUIHStack. The solver reads this
value to determine the main axis: true means X is the main axis and Y is
the cross axis.
Declaration
public override bool IsHorizontal { get; }
Property Value
| Type | Description |
|---|---|
| bool |