ProbeVolumeScenarioManager

1.5.0+

Manage probe volume scenarios.

Creation

Scenarios must be loaded using:

const scenario = await engine.probeVolumeScenarios.load('scenario.data.bin');

Scenario files are generated by the Wonderland Editor.

Static Members

Methods


Constructor

.constructor(engine: WonderlandEngine) ⇒ ProbeVolumeScenarioManager

ParamTypeDescription
engineWonderlandEngine

Methods

.find(filename: string) ⇒ null | ProbeVolumeScenario

Retrieve a scenario by filename.

Returns: The scenario if found, null otherwise.

ParamTypeDescription
filenamestringThe string containing the filename.

.load(filename: string) ⇒ Promise<ProbeVolumeScenario>

Load the probe volume scenario

Note: The scenario is loaded but not applied. To select it, use probeVolumeScenario.

ParamTypeDescription
filenamestringRelative URL from the main scene .bin file to the scenario, e.g., ‘scenarios/day.data.bin’.