The following describes changes made in Cognitive3D_Manager.cs for scene changing events:
Removed IsNextSceneValid() and DoesSceneHaveID()
Added TryGetTrackedScene() to check the scene in C3D scene settings
Turned SetTrackingScene() methods into a single method and it only handles setting the tracking scene if it exist in C3D scene settings
Added SendSceneUnloadEvent() and SendSceneLoadEvent() to handle scene change events
Replacing sceneStartTime variable with sceneStartTimeDic dictionary. This was implemented for additive scene cases where sceneStartTime was getting repopulated when a new additive scene got loaded.
Replaced CustomEvent.Send() with CustomEvent.Send(vector3 position) for load and unload events. This will fix "No HMD found" error between scene changes.
Modified the logic to unload the active scene when last scene event is sent before setting trackingScene to null or next tracked scene
Description
The following describes changes made in Cognitive3D_Manager.cs for scene changing events:
IsNextSceneValid()
andDoesSceneHaveID()
TryGetTrackedScene()
to check the scene in C3D scene settingsSetTrackingScene()
methods into a single method and it only handles setting the tracking scene if it exist in C3D scene settingsSendSceneUnloadEvent()
andSendSceneLoadEvent()
to handle scene change eventssceneStartTime
variable withsceneStartTimeDic
dictionary. This was implemented for additive scene cases wheresceneStartTime
was getting repopulated when a new additive scene got loaded.CustomEvent.Send(
) withCustomEvent.Send(vector3 position)
for load and unload events. This will fix "No HMD found" error between scene changes.trackingScene
to null or next tracked sceneHeight Task ID(s) (If applicable): https://c3d.height.app/T-5781 and https://c3d.height.app/T-5121
Type of change
Checklist