Skip to main content
File: Assets/_MolcaSDK/_VR/Scripts/Scenario/Session/ScenarioNetworkConfig.cs

Modes

  • SessionNetworkMode.Asset — each route uses an HttpRequestAsset (HttpClient).
  • SessionNetworkMode.Yaml — reads yamlFileName from Application.persistentDataPath and merges with base URL from file.

Default path constants

Verify against deployed assets; fragments include:
ConstantPath
VISITOR_LOGIN_ENDPOINT / GET_TOKEN_ENDPOINT/api/vr/token
MEMBER_LOGIN_ENDPOINT/api/vr/login
CREATE_SESSION_ENDPOINT/api/vr/session
START_SCENARIO_ENDPOINT/api/vr/start
Score endpoints/api/vr/score/activity, /step, /tour
UPDATE_SESSION_STATUS_ENDPOINT/api/vr/status
GET_LEADERBOARD_ENDPOINT/api/vr/leaderboard
GET_CONTENT_ENDPOINT/api/vr/content

Unity Editor

ScenarioSessionManager → Scenario Network Config foldout with HttpRequestAsset slots.

ScenarioNetworkConfig fields in Unity Inspector