Class ScyllaUILayoutGizmos
Optional Scene-view gizmo overlay for Scylla UI Layout components. Attach to a
GameObject that also hosts a ScyllaUIStackBase or
ScyllaUIScreenMargin to visualize its padding, inter-child gap, and
safe-area inset directly in the Scene view. Editor-only; OnDrawGizmos is
stripped from runtime builds by Unity.
Inherited Members
Namespace: Scylla.Core.Util.UI
Assembly: ScyllaCore.dll
Syntax
[AddComponentMenu("Scylla/UI/Layout/Layout Gizmos")]
[DisallowMultipleComponent]
[RequireComponent(typeof(RectTransform))]
[ExecuteAlways]
public sealed class ScyllaUILayoutGizmos : MonoBehaviour
Remarks
All four color fields are exposed so designers can tune the overlay to fit
their scene art. Set ShowOnlyWhenSelected to true to
avoid visual noise on canvases with many stacks.
Properties
DrawGap
Draw the inter-child spacing regions on H/V stacks.
Declaration
public bool DrawGap { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
DrawPadding
Draw the inner content area (RectTransform minus padding) on stacks.
Declaration
public bool DrawPadding { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
DrawSafeArea
Draw the safe-area inset for a colocated ScyllaUIScreenMargin.
Declaration
public bool DrawSafeArea { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
GapColor
Fill color for inter-child spacing regions.
Declaration
public Color GapColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
OuterColor
Outline color for the outer RectTransform boundary.
Declaration
public Color OuterColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
PaddingColor
Outline color for the inner content area.
Declaration
public Color PaddingColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
SafeAreaColor
Outline color for the safe-area inset rect.
Declaration
public Color SafeAreaColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
ShowOnlyWhenSelected
Only draw gizmos while this GameObject is selected.
Declaration
public bool ShowOnlyWhenSelected { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |