docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindPartOccurrencesByMaximumSize

    FindPartOccurrencesByMaximumSize(OccurrenceList, double, double, bool)

    Get part occurrences by size

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public OccurrenceList FindPartOccurrencesByMaximumSize(OccurrenceList roots, double maxDiagLength, double maxSize = -1, bool getHidden = false)
    Parameters
    Type Name Description
    OccurrenceList roots

    Roots occurrences for the process

    double maxDiagLength

    If the diagonal axis of the bounding box is less than maxDiagLength, part will be filtered. -1 to ignore

    double maxSize

    If the longer axis of the box is less than maxLength, part will be filtered. -1 to ignore

    bool getHidden

    If true, hidden part occurrences meeting the criteria will be filtered as well

    Returns
    Type Description
    OccurrenceList
    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)