Table of Contents

Class UnityApplicationService

Namespace
Luny.Unity.Services
Assembly
Luny.Unity.dll

Unity implementation of application control.

public sealed class UnityApplicationService : LunyApplicationServiceBase, ILunyApplicationService, ILunyEngineService
Inheritance
object
UnityApplicationService
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

exitCode int

Exit code (default: 0)