Class UnityApplicationService
Unity implementation of application control.
public sealed class UnityApplicationService : LunyApplicationServiceBase, ILunyApplicationService, ILunyEngineService
- Inheritance
-
objectUnityApplicationService
- Implements
Constructors
UnityApplicationService()
public UnityApplicationService()
Properties
IsEditor
True if running in the editor.
public override bool IsEditor { get; }
Property Value
- bool
IsPlaying
True if the application is playing (not paused in editor).
public override bool IsPlaying { get; }
Property Value
- bool
Methods
OnServiceInitialize()
protected override void OnServiceInitialize()
OnServiceShutdown()
protected override void OnServiceShutdown()
OnServiceStartup()
protected override void OnServiceStartup()
Quit(int)
Quits the application with optional exit code.
public override void Quit(int exitCode = 0)
Parameters
exitCodeintExit code (default: 0)