Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.Common

ConditionalRenderer

↳ extends UnityEngine.MonoBehaviour

Declaration​

public abstract class ConditionalRenderer : MonoBehaviour

Summary​

Base class for rendering components that attach command buffers to the camera. This component allows precise scheduling of rendering commands.


Properties​

NameTypeSummary
readonly CameraCamera
The Unity camera component.
readonly CameraEventsCameraEvent[]
The camera events that the command buffer should be attached to.
IsCommandBufferAddedbool
Whether the command buffer is attached to the Unity camera.
static readonly IsUsingLegacyRenderPipelinebool
Whether the application is using the default render pipeline.
MaterialMaterial
The material currently used in rendering.
readonly RendererNamestring
The name of this renderer.
readonly ShaderNamestring
The name of the shader used by the rendering material.
readonly ShouldAddCommandBufferbool
Custom logic to determine whether the command buffer should be attached.

Methods​

NameTypeSummary
Awakevoid
-
abstract OnAddRenderCommandsbool
Invoked when it is time to add rendering commands to the command buffer.
OnDestroyvoid
-
OnDisablevoid
-
OnInitializeMaterialvoid
Invoked when the material state needs to be reset or initialized with
default values. This usually occurs when the material is first created.
OnRequestExternalPassDependenciesstring[]
Invoked to query the external command buffers that need to run before our own.
OverrideMaterialvoid
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.
Updatevoid
-

Relationships​

derived: CompositeRenderer
derived: NsdkSceneSegmentationOverlay