_MolcaDT).
Script: Assets/_MolcaSDK/_VR/Scripts/Scenario/Data/ScenarioDataConfig.csType:
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
ScenarioCollectionentries (localBaseScenarioDataassets). - 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).
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
ScenarioExecutionModeand player mode values on the module asset in the activeGlobalSettings.
Related
Unity Editor
Screenshot: ScenarioDataConfig Inspector with collections expanded.
