Class ScyllaUILayoutMenuItems
GameObject menu quick-create entries for the Scylla UI Layout components. Items
are added under GameObject > UI > Scylla > ... and respect the
active selection: when a RectTransform is selected, the new GameObject is
parented under it; otherwise it is placed at scene root.
Inherited Members
Namespace: Scylla.Core.Editor.Util.UI.Layout
Assembly: ScyllaCore.Editor.dll
Syntax
public static class ScyllaUILayoutMenuItems
Methods
CreateAdaptiveStack(MenuCommand)
Creates a stretched ScyllaUIAdaptiveStack GameObject named "Adaptive Stack" under the currently selected parent, or at scene root when nothing is selected.
Declaration
[MenuItem("GameObject/UI/Scylla/Adaptive Stack", false, 43)]
public static void CreateAdaptiveStack(MenuCommand command)
Parameters
| Type | Name | Description |
|---|---|---|
| MenuCommand | command | The Unity menu command carrying the context object. |
CreateGrid(MenuCommand)
Creates a stretched ScyllaUIGrid GameObject named "Grid" under the currently selected parent, or at scene root when nothing is selected.
Declaration
[MenuItem("GameObject/UI/Scylla/Grid", false, 44)]
public static void CreateGrid(MenuCommand command)
Parameters
| Type | Name | Description |
|---|---|---|
| MenuCommand | command | The Unity menu command carrying the context object. |
CreateHStack(MenuCommand)
Creates a stretched ScyllaUIHStack GameObject named "HStack" under the currently selected parent, or at scene root when nothing is selected.
Declaration
[MenuItem("GameObject/UI/Scylla/H Stack", false, 40)]
public static void CreateHStack(MenuCommand command)
Parameters
| Type | Name | Description |
|---|---|---|
| MenuCommand | command | The Unity menu command carrying the context object. |
CreateLayoutRoot(MenuCommand)
Creates a stretched ScyllaUILayoutRoot GameObject named "Scylla Layout Root" under the currently selected parent, or at scene root when nothing is selected.
Declaration
[MenuItem("GameObject/UI/Scylla/Layout Root", false, 30)]
public static void CreateLayoutRoot(MenuCommand command)
Parameters
| Type | Name | Description |
|---|---|---|
| MenuCommand | command | The Unity menu command carrying the context object. |
CreateScreenMargin(MenuCommand)
Creates a stretched ScyllaUIScreenMargin GameObject named "Scylla Screen Margin" under the currently selected parent, or at scene root when nothing is selected.
Declaration
[MenuItem("GameObject/UI/Scylla/Screen Margin", false, 31)]
public static void CreateScreenMargin(MenuCommand command)
Parameters
| Type | Name | Description |
|---|---|---|
| MenuCommand | command | The Unity menu command carrying the context object. |
CreateSpacer(MenuCommand)
Creates a fixed-size (100 x 100) ScyllaUISpacer GameObject named "Spacer" under the currently selected parent, or at scene root when nothing is selected. The rect is not stretched so the spacer's initial size is visible and editable without an anchor override.
Declaration
[MenuItem("GameObject/UI/Scylla/Spacer", false, 50)]
public static void CreateSpacer(MenuCommand command)
Parameters
| Type | Name | Description |
|---|---|---|
| MenuCommand | command | The Unity menu command carrying the context object. |
CreateVStack(MenuCommand)
Creates a stretched ScyllaUIVStack GameObject named "VStack" under the currently selected parent, or at scene root when nothing is selected.
Declaration
[MenuItem("GameObject/UI/Scylla/V Stack", false, 41)]
public static void CreateVStack(MenuCommand command)
Parameters
| Type | Name | Description |
|---|---|---|
| MenuCommand | command | The Unity menu command carrying the context object. |
CreateZStack(MenuCommand)
Creates a stretched ScyllaUIZStack GameObject named "ZStack" under the currently selected parent, or at scene root when nothing is selected.
Declaration
[MenuItem("GameObject/UI/Scylla/Z Stack", false, 42)]
public static void CreateZStack(MenuCommand command)
Parameters
| Type | Name | Description |
|---|---|---|
| MenuCommand | command | The Unity menu command carrying the context object. |