logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityCharacterView

    View component attached to every character prefab. Implements ICharacterView (InterfaceAdapters) for Presenter binding and IViewBase (Serenity) for show/hide lifecycle. Does NOT hold a reference to CharacterArchetypeConfigSO — the archetype config is the single source of truth and is passed externally by the Presenter at spawn time.

    Inheritance
    object
    UnityCharacterView
    Implements
    IViewBase
    IFoundationSettings
    ICharacterView
    Namespace: Serenity.Character.Infrastructure.Views
    Assembly: Serenity.UnityCharacter.Infrastructure.dll
    Syntax
    public class UnityCharacterView : MonoBehaviour, IViewBase, IFoundationSettings, ICharacterView

    Constructors

    UnityCharacterView()

    Declaration
    public UnityCharacterView()

    Properties

    Guid

    Declaration
    public string Guid { get; set; }
    Property Value
    Type Description
    string

    Id

    Declaration
    public string Id { get; set; }
    Property Value
    Type Description
    string

    ViewModel

    Declaration
    public CharacterViewModel ViewModel { get; }
    Property Value
    Type Description
    CharacterViewModel

    Methods

    Bind(CharacterViewModel)

    Declaration
    public void Bind(CharacterViewModel viewModel)
    Parameters
    Type Name Description
    CharacterViewModel viewModel

    Hide()

    Declaration
    public void Hide()

    Initialize(ILogService)

    Declaration
    public void Initialize(ILogService logService)
    Parameters
    Type Name Description
    ILogService logService

    RefreshDebugFields()

    Declaration
    public void RefreshDebugFields()

    Show()

    Declaration
    public void Show()

    Unbind()

    Declaration
    public void Unbind()

    Implements

    IViewBase
    IFoundationSettings
    ICharacterView
    In this article
    © 2026 Serenity. All Rights Reserved