separator
Decorator that adds a visual separator line in the inspector UI.
| Type | Name | Interface Description |
|---|---|---|
| Functions | separator(): (target: any, key: string) => any | • Function: Decorator that adds a visual separator line in the inspector UI. Useful for visually grouping related properties. Can be used with or without parentheses. Returns Property decorator function when used with parentheses |
Example
@component()
export class GameManager extends APJS.BasicScriptComponent {
@serializeProperty()
public gameTitle: string = "My Game";
@separator()
@serializeProperty()
@spinBox(1, 100, 1)
public maxPlayers: number = 4;
@serializeProperty()
public gameMode: string = "coop";
@separator
@serializeProperty()
public serverAddress: string = "localhost";
}