Enum ScyllaUISizeMode
Per-axis sizing mode for a Scylla UI stack container. Controls whether the stack expands to its parent, shrinks to its content, or uses an explicit size from its RectTransform.
Namespace: Scylla.Core.Util.UI
Assembly: ScyllaCore.dll
Syntax
public enum ScyllaUISizeMode
Remarks
A stack carries two ScyllaUISizeMode values, one for each axis. The default for both axes is Fill so a freshly created stack occupies its parent's full content area.
Combining a Hug axis with a percent-valued child size on that axis is a circular dependency: the stack size depends on content but the content size depends on the stack. The solver detects this case, treats the percent value as zero, and emits a one-time warning per offending component. Use Absolute values on Hug axes to avoid the fallback.
Fields
| Name | Description |
|---|---|
| Fill | The stack expands to fill the parent dimension on this axis. |
| Fixed | The stack uses an explicit size from its RectTransform on this axis. The solver does not modify the size on this axis. |
| Hug | The stack shrinks to its content's intrinsic size on this axis, plus padding. |