Class ObjectIDCustomPass
Custom Pass that draws Object IDs
Implements
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
[Serializable]
public class ObjectIDCustomPass : DrawRenderersCustomPass, IVersionable<CustomPass.Version>
Methods
AssignObjectIDs()
Used to assign an ObjectID (in the form of a color) to every renderer in the scene. If a scene uses dynamic objects or procedural object placement, then the user script should call this function to assign Object IDs to the new objects.
Declaration
public virtual void AssignObjectIDs()
Setup(ScriptableRenderContext, CommandBuffer)
Called before the first execution of the pass occurs. Allow you to allocate custom buffers.
Declaration
protected override void Setup(ScriptableRenderContext renderContext, CommandBuffer cmd)
Parameters
Type | Name | Description |
---|---|---|
ScriptableRenderContext | renderContext | The render context |
CommandBuffer | cmd | Current command buffer of the frame |