header
Decorator that adds a header text in the inspector UI, useful for grouping related properties.
| Type | Name | Interface Description |
|---|---|---|
| Functions | header(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 • Returns Property decorator function |
Example
@component()
export class PlayerController extends APJS.BasicScriptComponent {
@header("Movement Settings")
@serializeProperty()
public moveSpeed: number = 5;
}