コード例 #1
0
 public static void UpdateDepthOfFieldDistance()
 {
     if (ACameraControllerManager.Get().Instance == null)
     {
         return;
     }
     ACameraControllerManager.Get().Instance.DepthOfFieldDistance = Config.DepthOfFieldDistance;
 }
コード例 #2
0
 public static void UpdateRotateSmoothMode()
 {
     if (ACameraControllerManager.Get().Instance == null)
     {
         return;
     }
     ACameraControllerManager.Get().Instance.SmoothRotationMode = Config.RotateSmoothMode;
 }
コード例 #3
0
 public static void UpdateFov()
 {
     if (ACameraControllerManager.Get().Instance == null)
     {
         return;
     }
     ACameraControllerManager.Get().Instance.ViewAngle = Config.CameraFov;
 }
コード例 #4
0
 public static void UpdateDepthOfFieldParameters()
 {
     if (ACameraControllerManager.Get().Instance == null)
     {
         return;
     }
     ACameraControllerManager.Get().Instance.DepthOfFieldStart = Config.DepthOfFieldStart;
     ACameraControllerManager.Get().Instance.DepthOfFieldEnd = Config.DepthOfFieldEnd;
 }
コード例 #5
0
 public static void UpdateSpeed()
 {
     if (ACameraControllerManager.Get().Instance == null)
     {
         return;
     }
     ACameraControllerManager.Get().Instance.MovementSpeedFactor = Config.SpeedFactor;
     ACameraControllerManager.Get().Instance.VerticalMovementSpeedFactor = Config.VerticalSpeedFactor;
 }
コード例 #6
0
 public static void OnBehaviourInitialize()
 {
     if (ACameraControllerManager.Get().Instance != null)
     {
         ACameraControllerManager.Get().Instance.ViewAngle = Config.CameraFov;
         ACameraControllerManager.Get().Instance.SmoothRotationMode = Config.RotateSmoothMode;
         UpdateDepthOfFieldParameters();
         UpdateDepthOfFieldDistance();
     }
 }