I can't use VR because of this error.
The issue tracker says it has been fixed, but I still have the issue. This wasn't an issue in any 5.5 build for me, I'm not sure what can be causing it. I don't get the error when I spawn as a non-VR player.
This also happens with a default scene, just a directional light and the VR camera rig prefab.
Anyone share this issue or know how to solve it. I checked camera clear flags according to forum posts before the bug was "fixed".
I tried a whole new project, not just a scene, and it worked. I only added SteamVR. Will comment further when I get my current project to work in case anyone else has this issue.
Answer by tayloreichhorst
Apr 03 at 02:34 AM
It was the SVG Importer plugin. Deleted it, no error!
Still can't see my custom controller model, but I'm thinking that's a different problem.
I tried removing SVG, but it did not help for me. Did you do anything else?
[Edit] Removing SVG worked, I just needed to get it to compile nicely and the restart Unity.
Answer by b1naryatr0phy
6 days ago
For those not using VR, this bug can be reproduced with the following setup: First camera clears to Skybox and has a depth of 0. Second camera clears to Depth Only and has any depth lower than the first camera's.
With that setup, any modification to either camera will cause the console to spit that error message. Increasing the Depth of the second camera to any value greater than the first resolves it. Setting both cameras to clear to Skybox also resolves it.
I can't reproduce this. Are you sure you don't have any custom assets imported into your project? Keep in mind that any editor script or script with ExecuteInEditMode or a Gizmo drawing function could cause trouble. This includes classes in compiled plugins. Try again with a new, empty project. If it still happens at least post your Unity version otherwise your answer seems quite useless.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
134 People are following this question.
Is it possible to restrict which subshader pass to use with Cameras
BCE0019: 'target' is not a member of 'Object'.
How to save position of stereo vrcameras
Player move and camera problem
Setting up a simple depth-based Shader Replacement material?