docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class StageRuntimeInterface

    Runtime link to reflect some Stage functionality for SRP editing

    Inheritance
    object
    StageRuntimeInterface
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering.LookDev
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public class StageRuntimeInterface

    Constructors

    StageRuntimeInterface(Func<bool, GameObject>, Func<Camera>, Func<Light>)

    Construct a StageRuntimeInterface

    Declaration
    public StageRuntimeInterface(Func<bool, GameObject> AddGameObject, Func<Camera> GetCamera, Func<Light> GetSunLight)
    Parameters
    Type Name Description
    Func<bool, GameObject> AddGameObject

    Callback to call when adding a GameObject

    Func<Camera> GetCamera

    Callback to call for getting the Camera

    Func<Light> GetSunLight

    Callback to call for getting the sun Light

    Fields

    SRPData

    Custom data pointer for convenience

    Declaration
    public object SRPData
    Field Value
    Type Description
    object

    Properties

    camera

    Get the camera used in the stage

    Declaration
    public Camera camera { get; }
    Property Value
    Type Description
    Camera

    sunLight

    Get the sun used in the stage

    Declaration
    public Light sunLight { get; }
    Property Value
    Type Description
    Light

    Methods

    AddGameObject(bool)

    Create a gameObject in the stage

    Declaration
    public GameObject AddGameObject(bool persistent = false)
    Parameters
    Type Name Description
    bool persistent

    [OPTIONAL] If true, the object is not recreated with the scene update. Default value: false.

    Returns
    Type Description
    GameObject

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    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)