Jump to content
 
Sign in to follow this  
dbirch88

SteamVR 2.2.0 - External Camera - NullReferenceException?

Recommended Posts

Hi,

I'm working on a mixed reality project and trying to get the external camera working on Unity (2018.3.9f1) using SteamVR 2.2.0.

I get the following error when launching Play Mode:

NullReferenceException: Object reference not set to an instance of an objectValve.VR.SteamVR_ExternalCamera.AttachToCamera (Valve.VR.SteamVR_Camera steamVR_Camera) (at Assets/SteamVR/Scripts/SteamVR_ExternalCamera.cs:141)Valve.VR.SteamVR_Render.RenderExternalCamera () (at Assets/SteamVR/Scripts/SteamVR_Render.cs:163)Valve.VR.SteamVR_Render+<RenderLoop>d__24.MoveNext () (at Assets/SteamVR/Scripts/SteamVR_Render.cs:146)UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)

I've tried both letting SteamVR instantiate the prefabs at runtime, and placing the prefabs myself and setting the references, I get the same error either way.

I've not made any modifications to the code - I just want to get an external camera tracking with a Vive Tracker.

 

Any help would be greatly appreciated! Thank you.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...