Persist Google Cardboard forward direction across scene loads in Unity3D 4.6.7? -
i'm having trouble trying maintain google cardboard considers forward device after scene load. although can't find obvious call in sdk c# code, appears google cardboard sdk automatically call recenter after each scene load. i've tried calling dontdestroyonload on cardboard instantiated prefab, , on cardboard.sdk object (which mentioned on line 328 of cardboard.cs). persists objects across load, view still re-centered based on current orientation of device.
i want avoid recenter because of gaze-based menu items can initiate load off user's left or right - makes new center left/right after scene load. user has physically move body facing towards new forward.
is else attempting same thing? missing obvious?
any suggestions appreciated!
the function cardboard.onlevelwasloaded() calls device.reset(), in base class implementation calls recenter(), has effect seeing. if comment out line, or guard variable can control, facing should not reset.
Comments
Post a Comment