public bool TryGetRightHandFingerCurl(out FingerCurl curl) { SkeletalSummaryData rightHandAnim = _rightHandAnimAction.summaryData; if (!_rightHandAnimAction.isActive || rightHandAnim == null) { curl = null; return(false); } curl = new FingerCurl(rightHandAnim.thumbCurl, rightHandAnim.indexCurl, rightHandAnim.middleCurl, rightHandAnim.ringCurl, rightHandAnim.littleCurl); return(true); }
// ReSharper restore UnusedMember.Local #pragma warning restore IDE0051 #endregion public void ApplyFingerTracking() { SkeletalSummaryData leftHandAnim = _leftHandAnimAction.summaryData; SkeletalSummaryData rightHandAnim = _rightHandAnimAction.summaryData; if (_leftHandAnimAction.isActive && leftHandAnim != null) { ApplyLeftHandFingerPoses(leftHandAnim.thumbCurl, leftHandAnim.indexCurl, leftHandAnim.middleCurl, leftHandAnim.ringCurl, leftHandAnim.littleCurl); } else { ApplyLeftHandFingerPoses(1, 1, 1, 1, 1); } if (_rightHandAnimAction.isActive && rightHandAnim != null) { ApplyRightHandFingerPoses(rightHandAnim.thumbCurl, rightHandAnim.indexCurl, rightHandAnim.middleCurl, rightHandAnim.ringCurl, rightHandAnim.littleCurl); } else { ApplyRightHandFingerPoses(1, 1, 1, 1, 1); } }