docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindPropertyLayered

    FindPropertyLayered(string, int, bool)

    Find a material property with layering option

    Declaration
    protected MaterialProperty[] FindPropertyLayered(string propertyName, int layerCount, bool isMandatory = false)
    Parameters
    Type Name Description
    string propertyName

    Name of the property.

    int layerCount

    Number of layers of the shader.

    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)