Class Renderer2DData
Class Renderer2DData
contains resources for a Renderer2D
.
Inherited Members
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]
[ExcludeFromPreset]
[MovedFrom("UnityEngine.Experimental.Rendering.Universal")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@latest/index.html?subfolder=/manual/2DRendererData_overview.html")]
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()