Ejemplo n.º 1
0
        /// <summary>
        /// Sets the far clip plane of the camera
        /// </summary>
        /// <param name="value">The far clip plane value.</param>
        public void SetFarClipPlane(float value)
        {
            value = MathEx.Clamp(value, MinFarClipPlane, MaxFarClipPlane);

            FarClipPlane = value;

            ProjectSettings.SetFloat("SceneCameraOptions_FarClipPlane", value);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the acceleration of the scene camera
 /// </summary>
 /// <param name="acceleration">The acceleration value.</param>
 public void SetAcceleration(float acceleration)
 {
     Acceleration = acceleration;
     ProjectSettings.SetFloat("SceneCameraOptions_Acceleration", acceleration);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Sets the field of view of the scene camera
 /// </summary>
 /// <param name="fieldOfView">The field of view value.</param>
 public void SetFieldOfView(float fieldOfView)
 {
     FieldOfView = (Degree)fieldOfView;
     ProjectSettings.SetFloat("SceneCameraOptions_FieldOfView", fieldOfView);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Sets the orthographic size of the scene camera.
 /// </summary>
 /// <param name="orthographicSize">The orthographic size value.</param>
 public void SetOrthographicSize(float orthographicSize)
 {
     OrthographicSize = orthographicSize;
     ProjectSettings.SetFloat("SceneCameraOptions_OrthographicSize", orthographicSize);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Sets the rotation speed of the scene camera
 /// </summary>
 /// <param name="rotationalSpeed">The rotation speed  value.</param>
 public void SetRotationalSpeed(float rotationalSpeed)
 {
     RotationalSpeed = rotationalSpeed;
     ProjectSettings.SetFloat("SceneCameraOptions_RotationalSpeed", rotationalSpeed);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Sets the scroll speed of the scene camera
 /// </summary>
 /// <param name="scrollSpeed">The scroll speed value.</param>
 public void SetScrollSpeed(float scrollSpeed)
 {
     ScrollSpeed = scrollSpeed;
     ProjectSettings.SetFloat("SceneCameraOptions_ScrollSpeed", scrollSpeed);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Sets the pan speed of the scene camera
 /// </summary>
 /// <param name="panSpeed">The pan speed value.</param>
 public void SetPanSpeed(float panSpeed)
 {
     PanSpeed = panSpeed;
     ProjectSettings.SetFloat("SceneCameraOptions_PanSpeed", panSpeed);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Sets the fast mode multiplier of the scene camera
 /// </summary>
 /// <param name="fastModeMultiplier">The fast mode multiplier value.</param>
 public void SetFastModeMultiplier(float fastModeMultiplier)
 {
     FastModeMultiplier = fastModeMultiplier;
     ProjectSettings.SetFloat("SceneCameraOptions_FastModeMultiplier", fastModeMultiplier);
 }