Skip to main content

MorpherComponent

morpher component

TypeNameInterface Description
VariablescalculateNormal: boolean

• Function: Gets or sets whether to calculate normals for the morphed mesh. When true, normals are calculated to ensure proper lighting on the morphed mesh. When false, performance may be better but lighting may appear incorrect.

Functionsconstructor()

FunctionsclearBlendShapeWeights(): void

• Function: Resets all blend shape weights to 0, effectively clearing all morphing effects. This returns the mesh to its base state without any blend shape deformations.

FunctionsgetBlendShapeWeight(name: string): number

• Function: Gets the weight value of the blend shape channel with the specified name. The name must match a blend shape channel defined on the mesh/morpher. Returns 0 if no weight is found for the given name.

Parameters

• name: The name of the blend shape channel

Returns The weight value of the blend shape channel

FunctionshasBlendShapeWeight(name: string): boolean

• Function: Checks if this component has a weight for the blend shape with the specified name. The name must match a blend shape channel defined on the mesh/morpher.

Parameters

• name: The name of the blend shape to check

Returns True if a weight exists for the blend shape, false otherwise

FunctionssetBlendShapeWeight(name: string, weight: number): void

• Function: Sets the weight value of the blend shape channel with the specified name. The name should normally match an existing blend shape channel defined on the mesh/morpher. If no channel exists with the given name, one will be created.

Parameters

• name: The name of the blend shape channel

• weight: The weight value to set for the blend shape channel

Examples​

constructor()​

let obj = new APJS.MorpherComponent();

Use Case​

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