Skip to main content
Product: Molca VR SDK (paths assume molca-sdk-vr). Not used by the Digital Twin SDK (_MolcaDT). Script: Assets/_MolcaSDK/_VR/Scripts/Scenario/Data/ScenarioDataConfig.cs
Type: SettingModule (listed on GlobalSettings)

When to use

Use this module whenever scenario selection/content resolution is needed in VR runtime (local scenario assets, fetched scenario metadata, execution/player mode switches).

Role

  • Holds ScenarioCollection entries (local BaseScenarioData assets).
  • Stores execution mode (ScenarioExecutionMode) and player mode — standalone vs connected; connected expects Scenario session + valid network config.
  • After a content fetch, supports lookup by organization scenario id and related org metadata (see source for SetFetchedContent / FetchedScenarios).
For a full walkthrough from a new asset to a playable scene, see New scenario quick start.

Lookup helpers

GetScenarioDataByName, GetScenarioData(string scenarioId), GetScenarioDataByScenarioId, GetScenarioDataByOrgId, etc. — confirm signatures in the .cs file.

Troubleshooting

  • Scenario not found by id/org id: verify scenario collections are assigned and fetched content has been set before lookup.
  • Connected mode fails at runtime: check Scenario network config endpoints and auth/session flow.
  • Wrong mode behavior: confirm ScenarioExecutionMode and player mode values on the module asset in the active GlobalSettings.

Unity Editor

Screenshot: ScenarioDataConfig Inspector with collections expanded.

ScenarioDataConfig SettingModule in the Unity Inspector