Interface IMeshModifier
Interface which allows for the modification of verticies in a Graphic before they are passed to the CanvasRenderer. When a Graphic generates a list of vertices they are passed (in order) to any components on the GameObject that implement IMeshModifier. This component can modify the given Mesh.
Namespace: UnityEngine.UI
Assembly: UnityEngine.UI.dll
Syntax
public interface IMeshModifier
Methods
ModifyMesh(VertexHelper)
Callback used for modifying the mesh. Place any custom mesh processing in this function.
Declaration
void ModifyMesh(VertexHelper verts)
Parameters
| Type | Name | Description |
|---|---|---|
| VertexHelper | verts | The VertexHelper containing the mesh data to modify. |