Skip to content

IScene

Defined in: display/Scene.ts:9

Interface for the Container class.

Extends

Properties

app

app: IApplication

Defined in: display/Container.ts:37

Inherited from

IContainer.app


assets?

optional assets: SceneAssets

Defined in: display/Scene.ts:11


autoUnloadAssets?

optional autoUnloadAssets: boolean

Defined in: display/Scene.ts:12


id

id: string

Defined in: display/Scene.ts:10


onDestroy

onDestroy: Signal<() => void>

Defined in: display/Container.ts:39

Inherited from

IContainer.onDestroy

Methods

addColoredBackground()

addColoredBackground(colorOrConfig?, alpha?): Sprite

Defined in: display/Container.ts:49

Parameters

colorOrConfig?

number | Partial<BackgroundConfig>

alpha?

number

Returns

Sprite

Inherited from

IContainer.addColoredBackground


added()

added(): void | Promise<void>

Defined in: display/Container.ts:43

Returns

void | Promise<void>

Inherited from

IContainer.added


destroy()

destroy(options?): void

Defined in: display/Container.ts:41

Parameters

options?

DestroyOptions

Returns

void

Inherited from

IContainer.destroy


enter()

enter(): Promise<any>

Defined in: display/Scene.ts:14

Returns

Promise<any>


exit()

exit(): Promise<any>

Defined in: display/Scene.ts:16

Returns

Promise<any>


initialize()

initialize(): void | Promise<void>

Defined in: display/Scene.ts:18

Returns

void | Promise<void>


resize()

resize(size?): void

Defined in: display/Container.ts:45

Parameters

size?

Size

Returns

void

Inherited from

IContainer.resize


start()

start(): void | Promise<void>

Defined in: display/Scene.ts:20

Returns

void | Promise<void>


update()

update(ticker?): void

Defined in: display/Container.ts:47

Parameters

ticker?

number | Ticker

Returns

void

Inherited from

IContainer.update