charles-river-analytics / VSDK-Unity

VSDK is an XR software development kit that enables developers to quickly build XR experiences through systems for naturalistic user interactions and support across a wide variety of XR devices and peripherals. VSDK is available for Unity 3D and for Unreal Engine.
MIT License
28 stars 3 forks source link

SteamVR Auto Populate Doesn't Work #7

Open ddugganCRA opened 5 years ago

ddugganCRA commented 5 years ago

Checking the 'auto-populate' box on the SteamVR SDK setup won't find the necessary objects in some versions of Unity. Unchecking the box and just pressing the button seems to work for some users.

I believe the issue is related to VRTK_SharedMethods.FindEvenInactiveGameObject or similar which have in some cases been unable to find objects in different scenes for some versions of Unity. SteamVR's don't destroy on load forces the setup into a separate scene.

ddugganCRA commented 5 years ago

This issue primarily occurs because SteamVR by default marks itself with DontDestroyOnLoad.

This can be fixed by adding the script 'SteamVR_Behavior' and unchecking the Do Not Destroy option. This doesn't get to the root cause of the issue, but will solve it for 99% of use cases.

I will close this issue once this step is adding to the setup docs.