Manage your cookie settings. You can enable or disable different types of cookies below. For more details, see our Privacy Policy.

ProbeVolumeScenarioManager

1.5.0+

Manage probe volume scenarios.

Creation 

Scenarios must be loaded using:

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

Scenario files are generated by the Wonderland Editor.

.constructor(engine: WonderlandEngine) ⇒ ProbeVolumeScenarioManager 

ParamTypeDescription
engineWonderlandEngine

.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’.