Skip to main content

ShadowMode

Defines the shadow casting and receiving modes for a renderable object.

TypeNameInterface Description
EnumCaster = 1

Function: The object casts shadows but does not receive them.

EnumNone = 0

Function: The object neither casts nor receives shadows.

EnumReceiver = 2

Function: The object receives shadows but does not cast them.

Examples

Caster = 1

let value = APJS.ShadowMode.Caster;

None = 0

let value = APJS.ShadowMode.None;

Receiver = 2

let value = APJS.ShadowMode.Receiver;

Use Case

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