logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityViewDefinition

    Base ScriptableObject for any authorable view definition (menus, composite views, …). It unifies the definition types under a single inspectable Unity type so a composite child slot can accept a menu definition or another composite definition through one object-reference field, while runtime code treats them uniformly via IViewDefinition.

    Inheritance
    object
    UnityViewDefinition
    Implements
    IViewDefinition
    IFoundationSettings
    IScrollableViewDefinition
    Namespace: Serenity.Global.Infrastructure.Settings
    Assembly: Serenity.UnityGlobal.Infrastructure.dll
    Syntax
    public abstract class UnityViewDefinition : ScriptableObject, IViewDefinition, IFoundationSettings, IScrollableViewDefinition
    Remarks

    The identifier fields are declared here (named Id/Guid) so they serialize under the same names existing definition assets already use, keeping those assets valid. Concrete definitions add their own type-specific configuration.

    Constructors

    UnityViewDefinition()

    Declaration
    protected UnityViewDefinition()

    Fields

    Guid

    Declaration
    public string Guid
    Field Value
    Type Description
    string

    The globally unique identifier for this view definition.

    Id

    Declaration
    public string Id
    Field Value
    Type Description
    string

    The unique identifier for this view definition.

    ScrollAxis

    Declaration
    public LayoutScrollAxis ScrollAxis
    Field Value
    Type Description
    LayoutScrollAxis

    The axis along which a scrollable view scrolls its overflowing content.

    Scrollable

    Declaration
    public bool Scrollable
    Field Value
    Type Description
    bool

    When true, content that overflows this view's visible area scrolls behind a generated scrollbar instead of clipping or spilling off-screen. Defaults to off, preserving the behavior of existing definition assets.

    Implements

    IViewDefinition
    IFoundationSettings
    IScrollableViewDefinition
    In this article
    © 2026 Serenity. All Rights Reserved