Description
The OrthoWidth
property of the SceneCamera
class is marked as obsolete and is no longer used. It was previously intended to define the width of the orthographic projection when the camera was set to orthographic mode. However, this property is now deprecated and should not be used in new code.
Usage
Since OrthoWidth
is obsolete, it is recommended to avoid using it in your code. Instead, consider using other properties or methods that are currently supported for configuring orthographic projections, such as OrthoHeight
or other relevant settings in the SceneCamera
class.
Example
// Example: Avoid using OrthoWidth as it is obsolete
// Instead, use OrthoHeight or other supported properties
SceneCamera camera = new SceneCamera();
// This line is obsolete and should be avoided
// float width = camera.OrthoWidth;
// Use OrthoHeight or other properties instead
float height = camera.OrthoHeight;