docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindOccurrencesByMetadata

    FindOccurrencesByMetadata(string, string, OccurrenceList, bool)

    Returns all occurrences which a metadata property value matches the given regular expression (ECMAScript)

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public OccurrenceList FindOccurrencesByMetadata(string property, string regex, OccurrenceList roots = null, bool caseInsensitive = false)
    Parameters
    Type Name Description
    string property

    Property name

    string regex

    Regular expression (ECMAScript)

    OccurrenceList roots

    If specified, restrict the search from the given roots

    bool caseInsensitive

    If True, the regex will be insensitive to upper and lower cases

    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)