Header menu logo PhysicsSandbox

IdGenerator Module

Functions and values

Function or value Description

nextId shapeKind

Full Usage: nextId shapeKind

Parameters:
    shapeKind : string

Returns: string

Generate the next human-readable ID for the given shape kind (e.g., "sphere" → "sphere-1").

shapeKind : string
Returns: string

reset ()

Full Usage: reset ()

Parameters:
    () : unit

Reset all counters. Used when reconnecting or clearing state.

() : unit

Type something to start searching.