Useful code snippets - immersivecognition/unity-experiment-framework GitHub Wiki

SteamVR

  • Show a GameObject (e.g. warning message) when game is not focused (i.e. the Oculus or SteamVR button has been pressed): Link to Gist

VR

  • Adjust height of a GameObject, and/or re-center your VR CameraRig with a keyboard press. Link to Gist

Feel free to submit your own by editing this document

Others

https://github.com/michidk/Unity-Script-Collection