RenderComponent
Base class for components that modify the state of a material.
Declaration
public abstract class RenderComponent : IDisposableProperties
| Name | Type | Summary |
|---|---|---|
| readonly Keyword | string | Keyword to enable in the shader. |
Methods
| Name | Type | Summary |
|---|---|---|
| Dispose | void | - |
| GetMatrix | Nullable<Matrix4x4> | Retrieves a matrix from the target material. |
| GetTexture | Texture | Retrieves a texture from the target material. |
| OnMaterialAttach | void | Invoked when the render component is initialized with a new material. |
| OnMaterialDetach | void | Invoked when the render component is removed from the material. |
| OnMaterialUpdate | void | Invoked when the render component needs to update the target material. |
| OnReleaseResources | void | Invoked when the component is being disposed. |
| OnUpdate | void | Perform custom logic during Update. The camera that is rendering the material. |
| SetTargetMaterial | void | Sets the material that this component is modifying. |
| Update | void | Performs render feature related logic and updates the target material. |
Relationships
implements: System.IDisposable