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

CompositeRenderer

↳ extends ConditionalRenderer

Declaration​

public abstract class CompositeRenderer : ConditionalRenderer

Summary​

The composite renderer is an abstraction for renderers that perform multiple, but logically decoupled tasks on the same material. This class allows for the addition and removal of render components, which usually enable a specific branch of the material shader and supply it with the necessary data.


Methods​

NameTypeSummary
AddRenderComponentbool
Creates and adds the specified render component for this renderer.
GetRenderComponentTComponent
Retrieves the specified render component from this renderer.
HasRenderComponentbool
Checks if the specified render component is present on this renderer.
OnAddRenderComponentbool
Invoked when a new component is being added to the renderer.
OnDestroyvoid
-
OnInitializeMaterialvoid
Invoked when the material state needs to be reset or initialized with
default values. This usually occurs when the material is first created.
RemoveRenderComponentbool
Removes the specified render component from this renderer, if it exists.
Updatevoid
-

Relationships​

derived: NsdkOcclusionExtension