Skip to main content

separator

Decorator that adds a visual separator line in the inspector UI.

TypeNameInterface Description
Functionsseparator(): (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";
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies