logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Delegate UnityCharacterPoolService.BindDelegate

    Delegate that binds a fresh ViewModel to a newly instantiated character GameObject. Called when a brand-new instance is created from a prefab. The implementation lives in the installer (which can reference InterfaceAdapters).

    Namespace: Serenity.Character.Infrastructure.Services
    Assembly: Serenity.UnityCharacter.Infrastructure.dll
    Syntax
    public delegate bool UnityCharacterPoolService.BindDelegate(GameObject go, ICharacterConfig config)
    Parameters
    Type Name Description
    GameObject go

    The instantiated character GameObject.

    ICharacterConfig config

    The Application archetype config for this character.

    Returns
    Type Description
    bool

    True if binding succeeded.

    Constructors

    BindDelegate(object, IntPtr)

    Declaration
    public BindDelegate(object @object, IntPtr method)
    Parameters
    Type Name Description
    object object
    IntPtr method

    Methods

    BeginInvoke(GameObject, ICharacterConfig, AsyncCallback, object)

    Declaration
    public virtual IAsyncResult BeginInvoke(GameObject go, ICharacterConfig config, AsyncCallback callback, object @object)
    Parameters
    Type Name Description
    GameObject go
    ICharacterConfig config
    AsyncCallback callback
    object object
    Returns
    Type Description
    IAsyncResult

    EndInvoke(IAsyncResult)

    Declaration
    public virtual bool EndInvoke(IAsyncResult result)
    Parameters
    Type Name Description
    IAsyncResult result
    Returns
    Type Description
    bool

    Invoke(GameObject, ICharacterConfig)

    Declaration
    public virtual bool Invoke(GameObject go, ICharacterConfig config)
    Parameters
    Type Name Description
    GameObject go
    ICharacterConfig config
    Returns
    Type Description
    bool
    In this article
    © 2026 Serenity. All Rights Reserved