Skip to content

1681-engine / index / DebugOverlayOptions

Interface: DebugOverlayOptions ​

Defined in: src/debug/DebugOverlay.ts:16

Properties ​

colliders? ​

ts
optional colliders?: (draw, line) => void;

Defined in: src/debug/DebugOverlay.ts:29

Called every shown frame to draw collision boxes (and lines: turned shapes, rays).

Parameters ​

ParameterType
drawBoxDrawer
lineLineDrawer

Returns ​

void


components? ​

ts
optional components?: readonly ComponentType<unknown>[];

Defined in: src/debug/DebugOverlay.ts:25

Component types the inspector lists; none, and it lists every entity with all it holds.


errors? ​

ts
optional errors?: number;

Defined in: src/debug/DebugOverlay.ts:31

Errors kept (default 8).


inspectLimit? ​

ts
optional inspectLimit?: number;

Defined in: src/debug/DebugOverlay.ts:27

Entities listed at most (default 12).


key? ​

ts
optional key?: string;

Defined in: src/debug/DebugOverlay.ts:21

KeyboardEvent.code that shows and hides it (default 'Backquote'). The key's own browser action is prevented (F3 would open the find bar, F12 the developer tools).


target? ​

ts
optional target?: HTMLElement | Window;

Defined in: src/debug/DebugOverlay.ts:33

Where the key is listened for (default window).


world? ​

ts
optional world?: () => World | undefined;

Defined in: src/debug/DebugOverlay.ts:23

The world to count and inspect (default the current scene's).

Returns ​

World | undefined

Released under the MIT License.