docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)