Skip to content

@fibbojs / core / FLight

Class: abstract FLight ​

The base class for lights in Fibbo.

Constructors ​

new FLight() ​

new FLight(options?): FLight

Parameters ​

• options?: FLightOptions

Returns ​

FLight

Defined in ​

core/src/FLight.ts:23

Methods ​

emitOnLoaded() ​

emitOnLoaded(): void

Emit the onLoaded callbacks.

Returns ​

void

Defined in ​

core/src/FLight.ts:57


onLoaded() ​

onLoaded(callback): void

Add a callback to be called when the light is loaded.

Parameters ​

• callback

The callback function.

Returns ​

void

Defined in ​

core/src/FLight.ts:50

Properties ​

__CALLBACKS_ON_LOADED__ ​

__CALLBACKS_ON_LOADED__: () => void[] = []

Callbacks for when the light is loaded.

Defined in ​

core/src/FLight.ts:16


scene ​

scene: FScene

The scene the light is attached to.

Defined in ​

core/src/FLight.ts:21