docs.unity.cn
    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
    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
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 12 June 2023