Mesh Renderer
The mesh renderer is a component that renders a mesh.
The MeshRendererRecorderModule
automatically picks up every mesh renderer in the scene and records:
- Whether the mesh renderer is enabled or not
- Reference to the mesh asset
Creation and destruction
The creation and destruction of a mesh renderer component are recorded as a MeshRendererCreate and MeshRendererDestroy sample respectively.
When created, a MeshRendererUpdate and RendererUpdate samples are emitted with the initial values of the mesh renderer component.
Update
Hooks
A MeshRendererUpdate sample is emitted when a change in the component properties is detected. The following methods are hooked to detect those changes:
- Renderer.enabled
- Renderer.material
- Renderer.materials
- Renderer.sharedMaterial
- Renderer.sharedMaterials
- void Renderer.SetPropertyBlock(MaterialPropertyBlock properties)
- void Renderer.SetPropertyBlock(MaterialPropertyBlock properties, int materialIndex)
- void Renderer.SetMaterials(List
materials) - void Renderer.SetSharedMaterials(List
materials)
Info
See the associated proto files for more information on the data format.