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
UnityCharacterView
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
Id
Declaration
public string Id { get; set; }
Property Value
ViewModel
Declaration
public CharacterViewModel ViewModel { get; }
Property Value
Methods
Bind(CharacterViewModel)
Declaration
public void Bind(CharacterViewModel viewModel)
Parameters
Hide()
Declaration
Initialize(ILogService)
Declaration
public void Initialize(ILogService logService)
Parameters
RefreshDebugFields()
Declaration
public void RefreshDebugFields()
Show()
Declaration
Unbind()
Declaration
Implements