Class CombineMeshes | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class CombineMeshes

    Methods for merging multiple ProBuilderMesh objects to a single mesh.

    Inheritance
    System.Object
    CombineMeshes
    Namespace: UnityEngine.ProBuilder.MeshOperations
    Syntax
    public static class CombineMeshes

    Methods

    Combine(IEnumerable<ProBuilderMesh>)

    Merge a collection of ProBuilderMesh objects to as few meshes as possible. This may result in more than one mesh due to a max vertex count limit of 65535.

    Declaration
    public static List<ProBuilderMesh> Combine(IEnumerable<ProBuilderMesh> meshes)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<ProBuilderMesh> meshes

    A collection of meshes to be merged.

    Returns
    Type Description
    System.Collections.Generic.List<ProBuilderMesh>

    A list of merged meshes. In most cases this will be a single mesh. However it can be multiple in cases where the resulting vertex count exceeds the maximum allowable value.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023