Skip to main content

VertexAttributeDesc

Describes the attributes of a vertex in a mesh.

TypeNameInterface Description
Variablesattribute: VertexAttributeType

Function: The vertex attribute type.

VariablescomponentCount: number

Function: The number of components of the attribute.

Variablesname: string

Function: The name of the vertex attribute. This should match the attribute name expected by the shader or mesh consumer.

Use Case

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