docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Filter on Material

    Rule Engine
    Filter input GameObjects based on its Materials names. If constrain is [Contains], GameObjects without any Materials or without at least one Material whose name contains [Value] will be filtered out. If constrain is [Does Not Contain], GameObjects with at least one Material whose name contains [Value] will be filtered out. If constrain is [Is Equal To], GameObjects without any Materials or without at least one Material whose name is equal to [Value] will be filtered out.

    Parameters

    Parameter Type Description
    materialStringConstraint FilterStringConstraint Choose between different predefined methods or create your custom regular expression.
    Then specify the string that will be used with the constraint method and the case sensitive parameter chosen.
    matchingMethod StringConstrain Define which method you want to use for filtering
    inputString (String) String Provide a pattern to use for filtering by string
    caseSensitive Boolean Specify if the constraint is case sensitive or not.
    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)