CompositeRenderer
↳ extends ConditionalRenderer
Declaration
public abstract class CompositeRenderer : ConditionalRendererSummary
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
| Name | Type | Summary |
|---|---|---|
| AddRenderComponent | bool | Creates and adds the specified render component for this renderer. |
| GetRenderComponent | TComponent | Retrieves the specified render component from this renderer. |
| HasRenderComponent | bool | Checks if the specified render component is present on this renderer. |
| OnAddRenderComponent | bool | Invoked when a new component is being added to the renderer. |
| OnDestroy | 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. |
| RemoveRenderComponent | bool | Removes the specified render component from this renderer, if it exists. |
| Update | void | - |
Relationships
derived: NsdkOcclusionExtension