Class ViewContext
Data container containing content of a view
Inherited Members
Namespace: UnityEditor.Rendering.LookDev
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
[Serializable]
public class ViewContext
Properties
| Name | Description |
|---|---|
| camera | The position and rotation of the camera |
| debug | The currently viewed debugState |
| environment | The currently used Environment |
| hasEnvironment | Check if an Environment is registered for this view. The result will be accurate even if the Environment have not been reloaded yet. |
| hasViewedObject | Check if an Environment is registered for this view. The result will be accurate even if the object have not been reloaded yet. |
| viewedInstanceInPreview | The currently displayed instance of viewedObjectReference. It will be instantiated when pushing changes to renderer. See SaveContextChangeAndApply(ViewIndex) |
| viewedObjectReference | Reference to the object given for instantiation. |
Methods
| Name | Description |
|---|---|
| ResetCameraState() | Reset the camera state to default values |
| UpdateEnvironment(Object) | Update the environment used. |
| UpdateViewedObject(GameObject) | Update the object reference used for instantiation. |