예제 #1
0
        void UpdateProperties()
        {
            UnityGlobalGvrProperties unityGlobalGvrProperties = new UnityGlobalGvrProperties();

            if (GetGlobalGvrProperties(ref unityGlobalGvrProperties))
            {
                floorHeight               = unityGlobalGvrProperties.floorHeight;
                recenterTransform         = unityGlobalGvrProperties.recenterTransform;
                safetyRegionType          = unityGlobalGvrProperties.safetyRegionType;
                safetyCylinderEnterRadius = unityGlobalGvrProperties.safetyCylinderEnterRadius;
                safetyCylinderExitRadius  = unityGlobalGvrProperties.safetyCylinderExitRadius;
            }
        }
예제 #2
0
        void UpdateProperties()
        {
            UnityGlobalGvrProperties unityGlobalGvrProperties = new UnityGlobalGvrProperties();

            if (GetGlobalGvrProperties(ref unityGlobalGvrProperties))
            {
                supportsPositionalHeadTracking
                    = unityGlobalGvrProperties.supportsPositionalHeadTracking;

                supportsSeeThrough        = unityGlobalGvrProperties.supportsSeeThrough;
                floorHeight               = unityGlobalGvrProperties.floorHeight;
                recenterTransform         = unityGlobalGvrProperties.recenterTransform;
                safetyRegionType          = unityGlobalGvrProperties.safetyRegionType;
                safetyCylinderEnterRadius = unityGlobalGvrProperties.safetyCylinderEnterRadius;
                safetyCylinderExitRadius  = unityGlobalGvrProperties.safetyCylinderExitRadius;
            }
        }
예제 #3
0
 private static extern bool GetGlobalGvrProperties(ref UnityGlobalGvrProperties outputProperties);