private static void OverrideGrabAnimation() { VR_HandInteractSettings settings = inspectedGrabbable.GetHandInteractionSettings(activeController); AnimationClip clip = settings.animation; activeController.OverrideInteractAnimation(settings.animation); }
public HandPreviewSave(VR_Grabbable grabbable) { handSettings = grabbable.HandSettings; leftSettings = grabbable.LeftHandSettings; rightSettings = grabbable.RightHandSettings; handSettingsInteractPointLocalPosition = handSettings.interactPoint.localPosition; leftHandSettingsInteractPointLocalPosition = leftSettings.interactPoint.localPosition; rightHandSettingsInteractPointLocalPosition = rightSettings.interactPoint.localPosition; }
private void CopyTo(VR_HandInteractSettings from, VR_HandInteractSettings to) { to.animation = from.animation; to.canInteract = from.canInteract; to.rotationOffset = from.rotationOffset; }