docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class EditorGameServiceFlagEnabler

    Base class for services which require service flag handling when toggling.

    Inheritance
    object
    EditorGameServiceFlagEnabler
    Implements
    IEditorGameServiceEnabler
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Core.Editor
    Assembly: Unity.Services.Core.Editor.dll
    Syntax
    public abstract class EditorGameServiceFlagEnabler : IEditorGameServiceEnabler

    Properties

    FlagName

    Name of the service in the services flags API

    Declaration
    protected abstract string FlagName { get; }
    Property Value
    Type Description
    string

    Methods

    Disable()

    Disables service.

    Also sends an API request to disable the service on the dashboard.

    Declaration
    public void Disable()

    DisableLocalSettings()

    Disables service.

    Declaration
    protected abstract void DisableLocalSettings()

    Enable()

    Enables the service

    Also sends an API request to disable the service on the dashboard.

    Declaration
    public void Enable()

    EnableLocalSettings()

    Enables the service

    Declaration
    protected abstract void EnableLocalSettings()

    IsEnabled()

    Gets the enablement status of the service

    Declaration
    public abstract bool IsEnabled()
    Returns
    Type Description
    bool

    The status of the service

    Events

    ServiceFlagRequestComplete

    The event fired when the web request that handles setting the service flag is complete

    Declaration
    public event Action ServiceFlagRequestComplete
    Event Type
    Type Description
    Action
    Remarks

    This event is only raised when the constant

    ENABLE_EDITOR_GAME_SERVICES
    is defined. Kept outside of this define to avoid an API breaking change.

    Implements

    IEditorGameServiceEnabler
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)