docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ConvertSimilarPartOccurrencesToInstances

    ConvertSimilarPartOccurrencesToInstances(OccurrenceList, bool, bool, int, bool, bool, int)

    Create instances from similar part occurrences with an accurate method based on topology checksums. This can be used to repair instances or to simplify a model that has similar parts that could be instantiated instead to reduce the number of unique meshes (reduces drawcalls, GPU memory usage and file size).

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public void ConvertSimilarPartOccurrencesToInstances(OccurrenceList occurrences, bool checkMeshTopo, bool checkVertexPositions, int vertexPositionPrecision, bool checkUVTopo, bool checkUVVertexPositions, int UVPositionprecision)
    Parameters
    Type Name Description
    OccurrenceList occurrences

    Occurrence for which we want to find similar parts and create instances using prototypes.

    bool checkMeshTopo
    bool checkVertexPositions
    int vertexPositionPrecision
    bool checkUVTopo
    bool checkUVVertexPositions
    int UVPositionprecision
    In This Article
    Back to top
    Copyright © 2025 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)