Class StageRuntimeInterface
Runtime link to reflect some Stage functionality for SRP editing
Inheritance
System.Object
StageRuntimeInterface
Namespace: UnityEngine.Rendering.LookDev
Syntax
public class StageRuntimeInterface
Constructors
StageRuntimeInterface(Func<Boolean, GameObject>, Func<Camera>, Func<Light>)
Declaration
public StageRuntimeInterface(Func<bool, GameObject> AddGameObject, Func<Camera> GetCamera, Func<Light> GetSunLight)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Func<System.Boolean, GameObject> | AddGameObject | |
| System.Func<Camera> | GetCamera | |
| System.Func<Light> | GetSunLight |
Fields
SRPData
Custom data pointer for convenience
Declaration
public object SRPData
Field Value
| Type | Description |
|---|---|
| System.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 |
|---|---|---|
| System.Boolean | persistent | [OPTIONAL] If true, the object is not recreated with the scene update. Default value: false. |
Returns
| Type | Description |
|---|---|
| GameObject |