Skip to main content

header

Decorator that adds a header text in the inspector UI, useful for grouping related properties.

TypeNameInterface Description
Functionsheader(content: string): (target: any, key: string) => any

Function: Decorator that adds a header text in the inspector UI, useful for grouping related properties. Creates a visual section header to organize the inspector layout.

Parameters

content: - The header text to display

Returns Property decorator function

Example

@component()
export class PlayerController extends APJS.BasicScriptComponent {
@header("Movement Settings")
@serializeProperty()
public moveSpeed: number = 5;
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies