Class Renderer2DData
Class Renderer2DData contains resources for a Renderer2D.
Inherited Members
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, InstantiateParameters)
Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
[Serializable]
[ReloadGroup]
[ExcludeFromPreset]
[MovedFrom("UnityEngine.Experimental.Rendering.Universal")]
public class Renderer2DData : ScriptableRendererData
Properties
hdrEmulationScale
HDR Emulation Scale allows platforms to use HDR lighting by compressing the number of expressible colors in exchange for extra intensity range. Scale describes this extra intensity range. Increasing this value too high may cause undesirable banding to occur.
Declaration
public float hdrEmulationScale { get; }
Property Value
| Type | Description |
|---|---|
| float |
lightBlendStyles
Returns a list Light2DBlendStyle
Declaration
public Light2DBlendStyle[] lightBlendStyles { get; }
Property Value
| Type | Description |
|---|---|
| Light2DBlendStyle[] |
Methods
Create()
Creates the instance of the Renderer2D.
Declaration
protected override ScriptableRenderer Create()
Returns
| Type | Description |
|---|---|
| ScriptableRenderer | The instance of Renderer2D |
Overrides
OnEnable()
OnEnable implementation.
Declaration
protected override void OnEnable()