logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class TemplateParams

    Inputs for Build(TemplateParams).

    Inheritance
    object
    TemplateParams
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Ui.Infrastructure.Editor.Builder
    Assembly: Serenity.UnityUi.Infrastructure.Editor.dll
    Syntax
    public sealed class TemplateParams

    Constructors

    TemplateParams()

    Declaration
    public TemplateParams()

    Fields

    CrossMenuNavigation

    Enable up/down focus traversal between stacked menus (STACK roots, or each navbar content View).

    Declaration
    public bool CrossMenuNavigation
    Field Value
    Type Description
    bool

    CrossMenuWrapAround

    When cross-menu navigation is on, wrap around the stack vs stop at the ends.

    Declaration
    public bool CrossMenuWrapAround
    Field Value
    Type Description
    bool

    FocusInitialView

    Route initial input to the default content View vs the navbar (only when always-showing).

    Declaration
    public bool FocusInitialView
    Field Value
    Type Description
    bool

    Gap

    Gap between regions, in pixels.

    Declaration
    public float Gap
    Field Value
    Type Description
    float

    InitialActiveViewIndex

    Zero-based index of the default content View (used when always-showing).

    Declaration
    public int InitialActiveViewIndex
    Field Value
    Type Description
    int

    InnerN

    Columns/rows per content View for the Navbar+NCol/NRow templates (≥1).

    Declaration
    public int InnerN
    Field Value
    Type Description
    int

    IsAlwaysShowingContent

    For a navbar template, show the default content View on entry vs starting blank.

    Declaration
    public bool IsAlwaysShowingContent
    Field Value
    Type Description
    bool

    N

    Section/View count (≥1).

    Declaration
    public int N
    Field Value
    Type Description
    int

    Navbar

    Navbar placement for the navbar templates.

    Declaration
    public NavbarSide Navbar
    Field Value
    Type Description
    NavbarSide

    NavbarDirection

    The layout direction of the generated navbar menu (e.g. Horizontal for a top/bottom tab bar).

    Declaration
    public MenuDirection NavbarDirection
    Field Value
    Type Description
    MenuDirection

    NavbarThickness

    Navbar main-axis thickness, interpreted by NavbarThicknessUnit.

    Declaration
    public float NavbarThickness
    Field Value
    Type Description
    float

    NavbarThicknessUnit

    How NavbarThickness is measured: fixed px, % of the axis, flex weight, or auto.

    Declaration
    public LayoutSizeUnit NavbarThicknessUnit
    Field Value
    Type Description
    LayoutSizeUnit

    RootId

    The root composite's id (sanitized internally).

    Declaration
    public string RootId
    Field Value
    Type Description
    string

    ScrollAxis

    Scroll axis when scrollable.

    Declaration
    public LayoutScrollAxis ScrollAxis
    Field Value
    Type Description
    LayoutScrollAxis

    Scrollable

    Whether a (non-navbar) template's root scrolls; SingleScrollableColumn forces this on.

    Declaration
    public bool Scrollable
    Field Value
    Type Description
    bool

    SectionDirections

    Per-View layout direction for that View's generated menu. Parallel to SectionNames; defaults to Vertical when short.

    Declaration
    public List<MenuDirection> SectionDirections
    Field Value
    Type Description
    List<MenuDirection>

    SectionHasBack

    Per-View flag: include a "Go Back" option in that View's menu. Parallel to SectionNames.

    Declaration
    public List<bool> SectionHasBack
    Field Value
    Type Description
    List<bool>

    SectionNames

    Per-View display names (used for ids + navbar labels); defaults applied when short.

    Declaration
    public List<string> SectionNames
    Field Value
    Type Description
    List<string>

    Template

    The selected template.

    Declaration
    public CompositeTemplate Template
    Field Value
    Type Description
    CompositeTemplate
    In this article
    © 2026 Serenity. All Rights Reserved