public static GameObject GetViewFinder() { if (!viewFinder) { viewFinder = VRCUtils.GetUserCameraController().transform.Find("ViewFinder").gameObject; } return(viewFinder); }
public static GameObject GetPhotoCamera() { if (!photoCamera) { photoCamera = VRCUtils.GetUserCameraController().transform.Find("PhotoCamera").gameObject; } return(photoCamera); }
public static void ResetCamera() { SetCameraMode(CameraMode.Off); SetCameraMode(CameraMode.Photo); var camInstance = VRCUtils.GetUserCameraController(); worldCameraVector = camInstance.viewFinder.transform.position; worldCameraQuaternion = camInstance.viewFinder.transform.rotation; worldCameraQuaternion *= Quaternion.Euler(90f, 0f, 180f); camInstance.photoCamera.transform.position = camInstance.viewFinder.transform.position; camInstance.photoCamera.transform.rotation = camInstance.viewFinder.transform.rotation; }
public static void ToggleFilterMenu() { VRCUtils.GetUserCameraController().viewFinder.transform.Find("PhotoControls/Right_Filters").GetComponent <CameraInteractable>().Interact(); }
public static void SetFilter(string filter) { VRCUtils.GetUserCameraController().filtersHolder.transform.Find(filter).GetComponentInChildren <CameraInteractable>().Interact(); }
public static void SetPin(int pin) { VRCUtils.GetUserCameraController().pinsHolder.transform.Find("button-Pin-" + pin).GetComponent <CameraInteractable>().Interact(); }
public static void CycleCameraSpace() { VRCUtils.GetUserCameraController().viewFinder.transform.Find("PhotoControls/Left_Space").GetComponent <CameraInteractable>().Interact(); }
public static void SetCameraMode(CameraMode mode) { VRCUtils.GetUserCameraController().prop_EnumPublicSealedvaOfPhVi4vUnique_0 = (EnumPublicSealedvaOfPhVi4vUnique)mode; }
public static Pin GetCurrentPin() { return((Pin)VRCUtils.GetUserCameraController().prop_Int32_0); }
public static CameraSpace GetCameraSpace() { return((CameraSpace)VRCUtils.GetUserCameraController().prop_EnumPublicSealedvaAtLoWoCO5vUnique_0); }
public static CameraBehaviour GetCameraBehaviour() { return((CameraBehaviour)VRCUtils.GetUserCameraController().prop_EnumPublicSealedvaNoSmLo4vUnique_0); }
public static void TakePicture(int timer) { var camInstance = VRCUtils.GetUserCameraController(); camInstance.StartCoroutine(camInstance.Method_Private_IEnumerator_Int32_PDM_0(timer)); }
// This used to be an obfuscated enum but I'll leave it like this anyway public static CameraSpace GetCameraSpace() { return((CameraSpace)VRCUtils.GetUserCameraController().prop_UserCameraSpace_0); }
// This used to be an obfuscated enum but I'll leave it like this anyway public static CameraBehaviour GetCameraBehaviour() { return((CameraBehaviour)VRCUtils.GetUserCameraController().prop_UserCameraMovementBehaviour_0); }
public static void SetCameraMode(CameraMode mode) { VRCUtils.GetUserCameraController().prop_UserCameraMode_0 = (UserCameraMode)mode; }
.None; //(CameraBehaviour)VRCUtils.GetUserCameraController().prop_UserCameraMovementBehaviour_0; // This used to be an obfuscated enum but I'll leave it like this anyway public static CameraSpace GetCameraSpace() => (CameraSpace)VRCUtils.GetUserCameraController().prop_UserCameraSpace_0;