Skip to content

setButtonState

setButtonState(world, entity, state): void

Defined in: ui/widgets/button.ts:165

Imperatively set a button’s $interaction page. Useful for custom states like “loading” that the pointer driver does not manage — the driver leaves any non-canonical page alone until user code switches back.

World

number

string

void