예제 #1
0
    protected void Start()
    {
        if (leapHandController == null)
        {
            Debug.LogWarning("Camera alignment requires an active LeapHandController -> enabled = false");
            enabled = false;
            return;
        }

        //Get a callback right as rendering begins for this frame so we can update the history and warping.
        LeapVRCameraControl.OnValidCameraParams += onValidCameraParams;

        deviceInfo = provider.GetDeviceInfo();
        if (deviceInfo.type == LeapDeviceType.Invalid)
        {
            Debug.LogWarning("Invalid Leap Device -> enabled = false");
            enabled = false;
            return;
        }
    }