Class Context
Class containing all data used by the LookDev Window to render
Implements
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetHashCode()
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEditor.Rendering.LookDev
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
[Serializable]
public class Context : ScriptableObject, IDisposable
Properties
| Name | Description |
|---|---|
| cameraSynced | State if both views camera movement are synced or not |
| environmentLibrary | The currently used Environment |
| layout | The currently used layout |
| viewContexts | Helper function to get ViewIterator on ViewContexts |
Methods
| Name | Description |
|---|---|
| GetViewContent(ViewIndex) | Get datas relative to a view |
| SetFocusedCamera(ViewIndex) | Change focused view. Focused view is the base view to copy data when syncing views' cameras |
| SynchronizeCameraStates(ViewIndex) | Synchronize cameras from both view using data from the baseCameraState |
| UpdateEnvironmentLibrary(EnvironmentLibrary) | Update the environment library used. |