Class StageRuntimeInterface
Runtime link to reflect some Stage functionality for SRP editing
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 |