Interface IViewDisplayer
Interface that must implement the viewer to communicate with the compositor and data management
Namespace: UnityEditor.Rendering.LookDev
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public interface IViewDisplayer
  Methods
GetRect(ViewCompositionIndex)
Get the displayed rect to use
Declaration
Rect GetRect(ViewCompositionIndex index)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ViewCompositionIndex | index | Index of this view  | 
      
Returns
| Type | Description | 
|---|---|
| Rect | The Rect to draw  | 
      
Repaint()
Repaint the UI
Declaration
void Repaint()
  SetTexture(ViewCompositionIndex, Texture)
Set the computed texture in the view
Declaration
void SetTexture(ViewCompositionIndex index, Texture texture)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ViewCompositionIndex | index | Index of this view  | 
      
| Texture | texture | The texture used  | 
      
Events
OnChangingEnvironmentInView
Callback on environment changed in the view
Declaration
event Action<Object, ViewCompositionIndex, Vector2> OnChangingEnvironmentInView
  Event Type
| Type | Description | 
|---|---|
| Action<Object, ViewCompositionIndex, Vector2> | 
OnChangingObjectInView
Callback on object changed in the view
Declaration
event Action<GameObject, ViewCompositionIndex, Vector2> OnChangingObjectInView
  Event Type
| Type | Description | 
|---|---|
| Action<GameObject, ViewCompositionIndex, Vector2> | 
OnClosed
Callback on closed
Declaration
event Action OnClosed
  Event Type
| Type | Description | 
|---|---|
| Action | 
OnLayoutChanged
Callback on layout changed
Declaration
event Action<Layout, SidePanel> OnLayoutChanged
  Event Type
| Type | Description | 
|---|---|
| Action<Layout, SidePanel> | 
OnMouseEventInView
Callback on ;ouse events in the view
Declaration
event Action<IMouseEvent> OnMouseEventInView
  Event Type
| Type | Description | 
|---|---|
| Action<IMouseEvent> | 
OnRenderDocAcquisitionTriggered
Callback on RenderDoc acquisition is triggered
Declaration
event Action OnRenderDocAcquisitionTriggered
  Event Type
| Type | Description | 
|---|---|
| Action | 
OnUpdateRequested
Callback on update requested
Declaration
event Action OnUpdateRequested
  Event Type
| Type | Description | 
|---|---|
| Action |