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(Mesh)
Declaration
[Obsolete("use IMeshModifier.ModifyMesh (VertexHelper verts) instead", false)]
void ModifyMesh(Mesh mesh)
Parameters
Type | Name | Description |
---|---|---|
Mesh | mesh |
ModifyMesh(VertexHelper)
Call used to modify mesh. Place any custom mesh processing in this function.
Declaration
void ModifyMesh(VertexHelper verts)
Parameters
Type | Name | Description |
---|---|---|
VertexHelper | verts |