Class EditorGameServiceFlagEnabler
Base class for services which require service flag handling when toggling.
Namespace: Unity.Services.Core.Editor
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()
Declaration
public void Disable()
Implements
DisableLocalSettings()
Disables service.
Declaration
protected abstract void DisableLocalSettings()
Enable()
Declaration
public void Enable()
Implements
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 |
---|---|
Boolean | The status of the service |
Implements
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.