docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IDataProvider

    Interface that Scriptable Render Pipelines should implement to be able to use LookDev window

    Namespace: UnityEngine.Rendering.LookDev
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public interface IDataProvider

    Properties

    supportedDebugModes

    Notify the LookDev about what debug view mode are available in this SRP

    Declaration
    IEnumerable<string> supportedDebugModes { get; }
    Property Value
    Type Description
    IEnumerable<string>

    The list of the mode, None is not required.

    Methods

    Cleanup(StageRuntimeInterface)

    Callback called to do any necessary cleanup.

    Declaration
    void Cleanup(StageRuntimeInterface SRI)
    Parameters
    Type Name Description
    StageRuntimeInterface SRI

    Access element of the LookDev's scene

    FirstInitScene(StageRuntimeInterface)

    Additional configuration required by this SRP on LookDev's scene creation

    Declaration
    void FirstInitScene(StageRuntimeInterface stage)
    Parameters
    Type Name Description
    StageRuntimeInterface stage

    Access element of the LookDev's scene

    GetShadowMask(ref RenderTexture, StageRuntimeInterface)

    Compute the shadow mask in SRP for LookDev sun simulation

    Declaration
    void GetShadowMask(ref RenderTexture output, StageRuntimeInterface stage)
    Parameters
    Type Name Description
    RenderTexture output

    The computed ShadowMask

    StageRuntimeInterface stage

    Access element of the LookDev's scene

    OnBeginRendering(StageRuntimeInterface)

    Callback called at the beginning of LookDev rendering.

    Declaration
    void OnBeginRendering(StageRuntimeInterface stage)
    Parameters
    Type Name Description
    StageRuntimeInterface stage

    Access element of the LookDev's scene

    OnEndRendering(StageRuntimeInterface)

    Callback called at the beginning of LookDev rendering.

    Declaration
    void OnEndRendering(StageRuntimeInterface stage)
    Parameters
    Type Name Description
    StageRuntimeInterface stage

    Access element of the LookDev's scene

    UpdateDebugMode(int)

    Notify the SRP about a change in the DebugMode used

    Declaration
    void UpdateDebugMode(int debugIndex)
    Parameters
    Type Name Description
    int debugIndex

    -1: None Others: map the result of supportedDebugModes

    UpdateSky(Camera, Sky, StageRuntimeInterface)

    Notify the SRP that sky have changed in LookDev

    Declaration
    void UpdateSky(Camera camera, Sky sky, StageRuntimeInterface stage)
    Parameters
    Type Name Description
    Camera camera

    The camera of the LookDev's scene

    Sky sky

    The new Sky informations

    StageRuntimeInterface stage

    Access element of the LookDev's scene

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)