docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetPolygonCount

    GetPolygonCount(OccurrenceList, bool, bool, bool)

    Returns the number of polygon in the parts meshes

    Declaration
    public int GetPolygonCount(OccurrenceList occurrences, bool asTriangleCount = false, bool countOnceEachInstance = false, bool countHidden = false)
    Parameters
    Type Name Description
    OccurrenceList occurrences

    The part occurrences

    bool asTriangleCount

    If true count the equivalent of triangles for each polygon

    bool countOnceEachInstance

    If true ignore multiple instance of each tessellation

    bool countHidden

    If true, also count hidden components

    Returns
    Type Description
    int
    In This Article
    Back to top
    Copyright © 2024 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)