Exemplo n.º 1
0
        private void OnEnable()
        {
            hmdDisplayIsOnDesktop             = VRTK_SDK_Bridge.IsDisplayOnDesktop();
            singleFrameDurationInMilliseconds = VRDevice.refreshRate > 0.0f
                                                ? 1000.0f / VRDevice.refreshRate
                                                : DefaultFrameDurationInMilliseconds;

            HandleCommandLineArguments();

            if (!Application.isEditor)
            {
                OnValidate();
            }

            CreateOrDestroyDebugVisualization();
        }