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
Name | Description |
---|---|
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. |
Setup(ScriptableRenderContext, CommandBuffer) | Called before the first execution of the pass occurs. Allow you to allocate custom buffers. |