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
Expand Details ...
Inheritance
Object
UnityApplicationService
Implements

Constructors

UnityApplicationService()

public UnityApplicationService()

Properties

IsEditor

True if running in the editor.

public override Boolean IsEditor { get; }

Property Value

Boolean

IsPlaying

True if the application is playing (not paused in editor).

public override Boolean IsPlaying { get; }

Property Value

Boolean

Methods

OnServiceInitialize()

protected override void OnServiceInitialize()

OnServiceShutdown()

protected override void OnServiceShutdown()

OnServiceStartup()

protected override void OnServiceStartup()

Quit(Int32)

Quits the application with optional exit code.

public override void Quit(Int32 exitCode = 0)

Parameters

Type Name Description
Int32
exitCode

Exit code (default: 0)