docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindProperty

    FindProperty(string, bool)

    Find a material property in the list of available properties.

    Declaration
    protected MaterialProperty FindProperty(string propertyName, bool isMandatory = false)
    Parameters
    Type Name Description
    string propertyName

    Name of the property.

    bool isMandatory

    Specifies whether the property is mandatory for your Inspector.

    Returns
    Type Description
    MaterialProperty

    Returns the material property if it exists. Returns null otherwise.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)