/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }