Class CameraState
Class containing data regarding position, rotation and viewport size of a camera
Implements
Inherited Members
Namespace: UnityEditor.Rendering.LookDev
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
[Serializable]
public class CameraState : ICameraUpdater
Properties
| Name | Description |
|---|---|
| distanceFromPivot | The distance from pivot |
| farClip | The far clip distance from camera |
| fieldOfView | The field of view of the camera |
| forward | The Forward vector in world space |
| nearClip | The near clip distance from camera |
| pivot | The position of the camera pivot |
| position | The position of the camera |
| right | The Right vector in world space |
| rotation | The rotation of the camera arround the pivot |
| up | The Up vector in world space |
| viewSize | The size of the view |
Methods
| Name | Description |
|---|---|
| Reset() | Reset the State to its default values |
| UpdateCamera(Camera) | Update a Camera component and its transform with this state values |