logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityCompositeViewInstaller

    Builds every authored composite view (UnityCompositeViewDefinition) at startup and registers it with a UnityCompositeViewService. Composite assets are discovered by the COMPOSITE_VIEW Addressables label, built with the UnityCompositeUiViewFactory, and start hidden until shown.

    Inheritance
    object
    UnityCompositeViewInstaller
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Ui.Infrastructure.Installation
    Assembly: Serenity.UnityUi.Infrastructure.dll
    Syntax
    public class UnityCompositeViewInstaller
    Remarks

    Mirrors the menu installer's shape. The host application calls Install(UnityCompositeViewInstallerInput) from its bootstrap (after menus exist, so UnityCompositeViewInstallerInput.ResolveViewById can resolve menu children), then exposes Service like any other Serenity service.

    Tag composite assets — and the menu assets they host — with the composite-view / menu module labels so the loader finds them; the loader also falls back to Resources when Addressables is disabled.

    Constructors

    UnityCompositeViewInstaller()

    Declaration
    public UnityCompositeViewInstaller()

    Properties

    Service

    The registry/coordinator created by Install(UnityCompositeViewInstallerInput); null until then.

    Declaration
    public ICompositeViewService Service { get; }
    Property Value
    Type Description
    ICompositeViewService

    Methods

    GetService()

    The created service, typed concretely for host registration.

    Declaration
    public ICompositeViewService GetService()
    Returns
    Type Description
    ICompositeViewService

    The custom view service.

    Install(UnityCompositeViewInstallerInput)

    Builds and registers all composite views, optionally showing one.

    Declaration
    public void Install(UnityCompositeViewInstallerInput input)
    Parameters
    Type Name Description
    UnityCompositeViewInstallerInput input

    Startup dependencies (canvas, event dispatcher, log, view resolver).

    In this article
    © 2026 Serenity. All Rights Reserved