Class Renderer2DData
Class Renderer2DData
contains resources for a Renderer2D
.
Inherited Members
ScriptableObject.CreateInstance<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
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.2D.Runtime.dll
Syntax
[Serializable]
[ExcludeFromPreset]
[MovedFrom(true, "UnityEngine.Experimental.Rendering.Universal", "Unity.RenderPipelines.Universal.Runtime", null)]
[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()