Ejemplo n.º 1
0
 public static GameObject GetViewFinder()
 {
     if (!viewFinder)
     {
         viewFinder = VRCUtils.GetUserCameraController().transform.Find("ViewFinder").gameObject;
     }
     return(viewFinder);
 }
Ejemplo n.º 2
0
 public static GameObject GetPhotoCamera()
 {
     if (!photoCamera)
     {
         photoCamera = VRCUtils.GetUserCameraController().transform.Find("PhotoCamera").gameObject;
     }
     return(photoCamera);
 }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
 public static void ToggleFilterMenu()
 {
     VRCUtils.GetUserCameraController().viewFinder.transform.Find("PhotoControls/Right_Filters").GetComponent <CameraInteractable>().Interact();
 }
Ejemplo n.º 5
0
 public static void SetFilter(string filter)
 {
     VRCUtils.GetUserCameraController().filtersHolder.transform.Find(filter).GetComponentInChildren <CameraInteractable>().Interact();
 }
Ejemplo n.º 6
0
 public static void SetPin(int pin)
 {
     VRCUtils.GetUserCameraController().pinsHolder.transform.Find("button-Pin-" + pin).GetComponent <CameraInteractable>().Interact();
 }
Ejemplo n.º 7
0
 public static void CycleCameraSpace()
 {
     VRCUtils.GetUserCameraController().viewFinder.transform.Find("PhotoControls/Left_Space").GetComponent <CameraInteractable>().Interact();
 }
Ejemplo n.º 8
0
 public static void SetCameraMode(CameraMode mode)
 {
     VRCUtils.GetUserCameraController().prop_EnumPublicSealedvaOfPhVi4vUnique_0 = (EnumPublicSealedvaOfPhVi4vUnique)mode;
 }
Ejemplo n.º 9
0
 public static Pin GetCurrentPin()
 {
     return((Pin)VRCUtils.GetUserCameraController().prop_Int32_0);
 }
Ejemplo n.º 10
0
 public static CameraSpace GetCameraSpace()
 {
     return((CameraSpace)VRCUtils.GetUserCameraController().prop_EnumPublicSealedvaAtLoWoCO5vUnique_0);
 }
Ejemplo n.º 11
0
 public static CameraBehaviour GetCameraBehaviour()
 {
     return((CameraBehaviour)VRCUtils.GetUserCameraController().prop_EnumPublicSealedvaNoSmLo4vUnique_0);
 }
Ejemplo n.º 12
0
        public static void TakePicture(int timer)
        {
            var camInstance = VRCUtils.GetUserCameraController();

            camInstance.StartCoroutine(camInstance.Method_Private_IEnumerator_Int32_PDM_0(timer));
        }
Ejemplo n.º 13
0
 // 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);
 }
Ejemplo n.º 14
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);
 }
Ejemplo n.º 15
0
 public static void SetCameraMode(CameraMode mode)
 {
     VRCUtils.GetUserCameraController().prop_UserCameraMode_0 = (UserCameraMode)mode;
 }
Ejemplo n.º 16
0
        .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;