Skip to content
pixi-silk
GitHub repository
Interface

LayoutDebug

import type { LayoutDebug } from 'pixi-silk/ui/layout';

The handle layoutDebug returns.

Properties#

PropertyTypeDescriptionDefined in
enabledbooleanTrue while the overlay draws.ui/layout/debug.ts:24

Methods#

destroy()#

destroy(): void;

Removes the overlay, the key binding and the pointer listener. The handle is unusable afterwards.

Returns#

void


toggle()#

toggle(): boolean;

Turns the overlay on or off. Returns the new state.

Returns#

boolean