Class ScyllaUIZStack
Depth/overlay stack container. Children sit atop each other at the same content
origin instead of being distributed along a main axis. Maps conceptually to a
SwiftUI ZStack or a Flutter Stack. Extends
ScyllaUIStackBase with overlay placement semantics.
Inheritance
Implements
Inherited Members
Namespace: Scylla.Core.Util.UI
Assembly: ScyllaCore.dll
Syntax
[AddComponentMenu("Scylla/UI/Layout/Z Stack")]
public sealed class ScyllaUIZStack : ScyllaUIStackBase, ILayoutElement
Remarks
By default every child fills the ZStack's inner content area (after padding). Attach a ScyllaUIPositioned component to a child to override its placement with an explicit 9-point anchor and pixel/percent offsets.
The Alignment property of the base class is ignored on a ZStack since
there is no main axis to distribute. CrossAlignment is honored only for
children without a ScyllaUIPositioned component when set to a
non-Stretch value; the value is then used as
a 2D corner anchor (Start = top-left, Center = middle, End = bottom-right).
Unity sibling order controls render depth: the last sibling draws on top, as is standard for uGUI canvases.
Properties
IsHorizontal
Always true for ScyllaUIZStack. ZStack has no real main
axis but the solver uses this value when stashing per-child preferred sizes:
true keeps width as the main-content field and height as the
cross-content field, matching the ZStack placement code's expectations.
Declaration
public override bool IsHorizontal { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
IsZStack
Always true for ScyllaUIZStack.
Declaration
public override bool IsZStack { get; }
Property Value
| Type | Description |
|---|---|
| bool |