logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityGameplayEntityService

    Unity MonoBehaviour implementation of IGameplayEntityService.

    Inheritance
    object
    UnityGameplayEntityService
    Implements
    IGameplayEntityService
    IService
    IFoundationSettings
    Namespace: Serenity.GameplayEntity.Infrastructure.Services
    Assembly: Serenity.UnityGameplayEntity.Infrastructure.dll
    Syntax
    public class UnityGameplayEntityService : MonoBehaviour, IGameplayEntityService, IService, IFoundationSettings
    Remarks

    Provides identity and semantic typing for gameplay entities. Creates GameEntityRef values with unique or explicit identities.

    Constructors

    UnityGameplayEntityService()

    Declaration
    public UnityGameplayEntityService()

    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

    LogService

    Declaration
    public ILogService LogService { get; set; }
    Property Value
    Type Description
    ILogService

    Methods

    CreateRef(GameEntityKind)

    Declaration
    public GameEntityRef CreateRef(GameEntityKind kind)
    Parameters
    Type Name Description
    GameEntityKind kind
    Returns
    Type Description
    GameEntityRef

    CreateRef(GameEntityId, GameEntityKind)

    Declaration
    public GameEntityRef CreateRef(GameEntityId id, GameEntityKind kind)
    Parameters
    Type Name Description
    GameEntityId id
    GameEntityKind kind
    Returns
    Type Description
    GameEntityRef

    InitializeService(ILogService)

    Initializes the service with required dependencies.

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

    The logging service for diagnostic output.

    Implements

    IGameplayEntityService
    IService
    IFoundationSettings
    In this article
    © 2026 Serenity. All Rights Reserved