Skip to main content
Defined in: modules/editor/src/protocol.ts:71 Optional engine features the editor turns on in its welcome.

Properties

frameStats?

optional frameStats?: object
Defined in: modules/editor/src/protocol.ts:73 Emit frame-stats every intervalMs.

intervalMs

intervalMs: number

logs?

optional logs?: boolean | { values?: boolean; }
Defined in: modules/editor/src/protocol.ts:78 Forward the game’s console output as log events. With values, each event also carries the logged values and where the game logged them.

networkTrace?

optional networkTrace?: object
Defined in: modules/editor/src/protocol.ts:84 Emit network-trace events: a sampleRate share of packets, at most maxPerSecond, each with the first maxBytes bytes of its payload; and network-stats totals every second.

maxBytes?

optional maxBytes?: number

maxPerSecond?

optional maxPerSecond?: number

sampleRate?

optional sampleRate?: number

viewport?

optional viewport?: boolean
Defined in: modules/editor/src/protocol.ts:89 Emit viewport events: the game’s viewport when the editor asks for it, then on every change. Clients only (a server has no viewport).