Chain 0 Posted January 8, 2020 hello. I'm developing in Unity. Is there a way to turn on / off the Tron mode in Unity? I want it to work with code rather than SteamVR setting. I want to know which classes or methods I can modify SteamVR version is beta 1.9.16 / 2.5.0 (sdk 1.8.19) thanks. Share this post Link to post Share on other sites
Chain 0 Posted January 8, 2020 My purpose is to turn on / off SteamVR-> Setting-> Camera-> Show Camera at Room Edge with code. Share this post Link to post Share on other sites
JCSegula 6 Posted January 8, 2020 As far as i know, (and is not very much in this topic) you can use this: Valve.VR.OpenVR.Chaperone.ForceBoundsVisible(true) Anyway, I remember i read something about it on Unity Blog: https://blogs.unity3d.com/2017/06/16/codesnippets-toggle-vives-front-facing-camera-and-tron-mode-at-run-time/ Hope it helps a little 😄 1 Share this post Link to post Share on other sites
VibrantNebula 219 Posted January 8, 2020 @Chain - The blog @JCSegula posted is the recommended Unity resource on this topic. The user needs to previously have cameras enabled in SteamVR settings for this to work, if they have the cameras disabled, you're out of luck. Share this post Link to post Share on other sites
Chain 0 Posted January 9, 2020 18 hours ago, JCSegula said: As far as i know, (and is not very much in this topic) you can use this: Valve.VR.OpenVR.Chaperone.ForceBoundsVisible(true) Anyway, I remember i read something about it on Unity Blog: https://blogs.unity3d.com/2017/06/16/codesnippets-toggle-vives-front-facing-camera-and-tron-mode-at-run-time/ Hope it helps a little 😄 Thank you. The method you gave me doesn't work, but let's find the relevant rink and script . Share this post Link to post Share on other sites
Chain 0 Posted January 9, 2020 12 hours ago, VibrantNebula said: @Chain - The blog @JCSegula posted is the recommended Unity resource on this topic. The user needs to previously have cameras enabled in SteamVR settings for this to work, if they have the cameras disabled, you're out of luck. EVRSettingsError e = EVRSettingsError.None; OpenVR.Settings.SetBool(OpenVR.k_pch_Camera_Section, OpenVR.k_pch_Camera_EnableCameraForCollisionBounds_Bool, enable, ref e); OpenVR.Settings.Sync(true, ref e); return e; This method(Setbool) is not working... but GetBool method is working. I don't know what is the problem. Share this post Link to post Share on other sites
JCSegula 6 Posted January 9, 2020 See if this helps: https://github.com/ValveSoftware/steamvr_unity_plugin/issues/20 Share this post Link to post Share on other sites
JCSegula 6 Posted January 14, 2020 I also remembered this topic: https://blogs.unity3d.com/2017/06/16/codesnippets-toggle-vives-front-facing-camera-and-tron-mode-at-run-time/ Share this post Link to post Share on other sites