Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
monochr0m3's avatar
monochr0m3
Honored Guest
12 years ago

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.

2 Replies

Replies have been turned off for this discussion
  • Just destroy your cameracontroller right before you change the scene.
  • I'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