docs.unity3d.com
    Show / Hide Table of Contents

    Class StageRuntimeInterface

    Runtime link to reflect some Stage functionality for SRP editing

    Inheritance
    Object
    StageRuntimeInterface
    Namespace: UnityEngine.Rendering.LookDev
    Syntax
    public class StageRuntimeInterface

    Constructors

    StageRuntimeInterface(Func<Boolean, 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<Boolean, 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(Boolean)

    Create a gameObject in the stage

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

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

    Returns
    Type Description
    GameObject

    Extension Methods

    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top
    Terms of use
    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