ConditionalRenderer
↳ extends UnityEngine.MonoBehaviour
Declaration
public abstract class ConditionalRenderer : MonoBehaviourSummary
Base class for rendering components that attach command buffers to the camera. This component allows precise scheduling of rendering commands.
Properties
| Name | Type | Summary |
|---|---|---|
| readonly Camera | Camera | The Unity camera component. |
| readonly CameraEvents | CameraEvent[] | The camera events that the command buffer should be attached to. |
| IsCommandBufferAdded | bool | Whether the command buffer is attached to the Unity camera. |
| static readonly IsUsingLegacyRenderPipeline | bool | Whether the application is using the default render pipeline. |
| Material | Material | The material currently used in rendering. |
| readonly RendererName | string | The name of this renderer. |
| readonly ShaderName | string | The name of the shader used by the rendering material. |
| readonly ShouldAddCommandBuffer | bool | Custom logic to determine whether the command buffer should be attached. |
Methods
| Name | Type | Summary |
|---|---|---|
| Awake | void | - |
| abstract OnAddRenderCommands | bool | Invoked when it is time to add rendering commands to the command buffer. |
| OnDestroy | void | - |
| OnDisable | void | - |
| OnInitializeMaterial | void | Invoked when the material state needs to be reset or initialized with default values. This usually occurs when the material is first created. |
| OnRequestExternalPassDependencies | string[] | Invoked to query the external command buffers that need to run before our own. |
| OverrideMaterial | void | Overrides the current material used in rendering with a new material. If the component is using the default material, it will be destroyed. This method also resets the command buffer initialization state. |
| Update | void | - |
Relationships
derived: CompositeRenderer
derived: NsdkSceneSegmentationOverlay