コード例 #1
0
        void Start()
        {
            // Get the IVRCameraController
            CameraController = gameObject.transform.parent.parent.GetComponent <IVRCameraController>();

            if (CameraController == null)
            {
                Debug.LogWarning("WARNING: IVRCameraController not found!");
            }
        }
コード例 #2
0
        private float DistK0, DistK1, DistK2, DistK3 = 0.0f;    // lens distortion parameters

        void Awake()
        {
            _instance = this;
        }