Forum Discussion
monochr0m3
12 years agoHonored Guest
OVRCameraController not destroyed between scenes
I've created a GameObject which implemented the OVRCameraController.
The problem is, when I load a new level using Application.LoadLevel, the OVRCameraController from the previous scene is not destroyed so there are multiple instances of it which causes some problems such as two audio listeners existing. There is no problem if I load the level directly from the editor.
The problem is, when I load a new level using Application.LoadLevel, the OVRCameraController from the previous scene is not destroyed so there are multiple instances of it which causes some problems such as two audio listeners existing. There is no problem if I load the level directly from the editor.
2 Replies
Replies have been turned off for this discussion
- raidho36ExplorerJust destroy your cameracontroller right before you change the scene.
- monochr0m3Honored GuestI've tried destroying it, but it still somehow instantiate a new one each time I change scenes.
I don't know why but the problem suddenly gone when I create an empty gameobject and attach the OVRCameraController prefab as it's child. lol
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 5 years agoAnonymous
- 13 years ago
- 13 years ago
- 4 years agoAnonymous