Class DecalRendererFeature
The class for the decal renderer feature.
Implements
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.Runtime.dll
Syntax
[SupportedOnRenderer(typeof(UniversalRendererData))]
[DisallowMultipleRendererFeature("Decal")]
[Tooltip("With this Renderer Feature, Unity can project specific Materials (decals) onto other objects in the Scene.")]
public class DecalRendererFeature : ScriptableRendererFeature, IDisposable
Methods
AddRenderPasses(ScriptableRenderer, ref RenderingData)
Injects one or multiple ScriptableRenderPass
in the renderer.
Declaration
public override void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData)
Parameters
Type | Name | Description |
---|---|---|
ScriptableRenderer | renderer | Renderer used for adding render passes. |
RenderingData | renderingData | Rendering state. Use this to setup render passes. |
Overrides
Create()
Initializes this feature's resources. This is called every time serialization happens.
Declaration
public override void Create()
Overrides
Dispose(bool)
Called by Dispose(). Override this function to clean up resources in your renderer.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
Overrides
OnCameraPreCull(ScriptableRenderer, in CameraData)
Callback before cull happens in renderer.
Declaration
public override void OnCameraPreCull(ScriptableRenderer renderer, in CameraData cameraData)
Parameters
Type | Name | Description |
---|---|---|
ScriptableRenderer | renderer | Renderer of callback. |
CameraData | cameraData | CameraData contains all relevant render target information for the camera. |
Overrides
SetupRenderPasses(ScriptableRenderer, in RenderingData)
Callback after render targets are initialized. This allows for accessing targets from renderer after they are created and ready.
Declaration
public override void SetupRenderPasses(ScriptableRenderer renderer, in RenderingData renderingData)
Parameters
Type | Name | Description |
---|---|---|
ScriptableRenderer | renderer | Renderer used for adding render passes. |
RenderingData | renderingData | Rendering state. Use this to setup render passes. |