Skip to main content

Light

Represents a light source in the scene.

TypeNameInterface Description
Variablescolor: Color

Function: Gets the color of the light.

Variablesintensity: number

Function: Gets the intensity of the light.

VariablesrenderLayer: LayerSet

Function: Gets the layers that are affected by this light.

Functionsconstructor()

Examples

constructor()

let obj = new APJS.Light();

Use Case

@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use Light here
}
onUpdate(deltaTime: number) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies