private IEnumerator FindTarget() { while (true) { yield return(new WaitForSeconds(.5f)); chaControl = GetComponentInParent <ChaControl>(); if (chaControl != null) { lookAtController = chaControl.eyeLookCtrl; if (lookAtController != null) { if (originalTransform == null) { originalTransform = lookAtController.target; } lookAtController.target = enabled ? transform : Camera.main.transform; } } else { if (originalTransform != null && lookAtController != null) { lookAtController.target = originalTransform; } lookAtController = null; originalTransform = null; } } }
public static bool EyeLookControllerLateUpdate(EyeLookController __instance) { if (__instance.ptnNo == 1 || __instance.ptnNo == 2) { __instance.target = VR.Camera.Head; } return(true); }
// Token: 0x06004D68 RID: 19816 RVA: 0x0019F428 File Offset: 0x0019D828 private void SetEyeLookTarget(VRC_PlayerApi p, bool forceCam) { EyeLookController componentInChildren = p.gameObject.GetComponentInChildren <EyeLookController>(); if (componentInChildren == null) { return; } EyeAndHeadAnimator componentInChildren2 = p.gameObject.GetComponentInChildren <EyeAndHeadAnimator>(); if (componentInChildren2 == null) { return; } if (forceCam) { componentInChildren.SetPhotoMode(base.transform); } else { componentInChildren.SetDefaultMode(); } }
public static bool TitleSceneLateUpdate(EyeLookController __instance) { VRLog.Info("Setting VR Camera to game camera"); VRPatcher.MoveVRCameraToMainCamera(); return(true); }
public static bool EyeLookControllerLateUpdate(EyeLookController __instance) { VRPatcher.MoveMainCameraToVRCamera(__instance.target); return(true); }