docs.unity3d.com
    Show / Hide Table of Contents

    Interface IViewDisplayer

    Interface that must implement the viewer to communicate with the compositor and data management

    Namespace: UnityEditor.Rendering.LookDev
    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

    Extension Methods

    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023