Class StageRuntimeInterface
Runtime link to reflect some Stage functionality for SRP editing
Inherited Members
Namespace: UnityEngine.Rendering.LookDev
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public class StageRuntimeInterfaceConstructors
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 SRPDataField 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 | The newly created GameObject, or null if the creation process failed. |