logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class CharacterConfigSO

    ScriptableObject authoring asset for character archetype configuration. Implements ICharacterConfig so upper layers can depend on the Application-layer interface instead of this concrete Infrastructure type. Contains Unity-specific authoring data (prefab) alongside fields that map to the Business CharacterConfig. Per-genre stats (damage, score, attack timing, etc.) belong on a concrete-game subclass of this ScriptableObject, not here.

    Must carry the Addressables label type:character (CHARACTER) to be discovered at runtime by UnityCharacterInstaller.

    Inheritance
    object
    CharacterConfigSO
    Implements
    ICharacterConfig
    IFoundationSettings
    Namespace: Serenity.Character.Infrastructure.Settings
    Assembly: Serenity.UnityCharacter.Infrastructure.dll
    Syntax
    public class CharacterConfigSO : ScriptableObject, ICharacterConfig, IFoundationSettings

    Constructors

    CharacterConfigSO()

    Declaration
    public CharacterConfigSO()

    Fields

    Guid

    Declaration
    public string Guid
    Field Value
    Type Description
    string

    GUID for this character config asset.

    Id

    Declaration
    public string Id
    Field Value
    Type Description
    string

    Unique identifier for this character config asset.

    Properties

    MaxHealth

    Maximum hit points before death.

    Declaration
    public int MaxHealth { get; }
    Property Value
    Type Description
    int

    MoveSpeed

    Movement speed (units/second).

    Declaration
    public float MoveSpeed { get; }
    Property Value
    Type Description
    float

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    Prefab

    Prefab used to instantiate this character in the scene.

    Declaration
    public GameObject Prefab { get; }
    Property Value
    Type Description
    GameObject

    Implements

    ICharacterConfig
    IFoundationSettings
    In this article
    © 2026 Serenity. All Rights Reserved