docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindOccurrencesByMetadataValue

    FindOccurrencesByMetadataValue(string, OccurrenceList, bool)

    Returns all occurrences with a metadata value matching the given regular expression (ECMAScript)

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public OccurrenceList FindOccurrencesByMetadataValue(string regex, OccurrenceList roots = null, bool caseInsensitive = false)
    Parameters
    Type Name Description
    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)