Skip to main content

LensFlare

Represents a PostEffect specifically designed for the LensFlare.

TypeNameInterface Description
Variablesintensity: number

Function: Gets or sets the lens flare intensity. Controls the brightness of the flare effect. Range: [0, 1].

Variablesposition: Vector2f

Function: Gets or sets the lens flare position (X,Y). Defines the screen-space position of the flare source. Vector2f in normalized 0–1 screen coordinates; X: 0–1, left to right. Y: 0–1, bottom to top.

Functionsconstructor()

Examples

constructor()

let obj = new APJS.LensFlare();

Use Case

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