For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server-editor/types/ActivationFunctionType.md.

Type Alias: ActivationFunctionType<PerPlayerStorageType>

ActivationFunctionType<PerPlayerStorageType> = (uiSession) => IDisposable[]

Beta

Callback type when an extension instance is activated for a given player. It is expected to return an array of disposables that will automatically be cleaned up on shutdown.

Type Parameters

PerPlayerStorageType

PerPlayerStorageType

Parameters

uiSession

IPlayerUISession<PerPlayerStorageType>

Returns

IDisposable[]