docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetMask

    GetMask(params string[])

    Given a set of Interaction Layer names, returns the equivalent mask for all of them.

    Declaration
    public static int GetMask(params string[] layerNames)
    Parameters
    Type Name Description
    string[] layerNames

    The interaction layer names to be converted to a mask

    Returns
    Type Description
    int

    Returns the equivalent mask for all the supplied Interaction Layer names.

    Exceptions
    Type Condition
    ArgumentNullException

    Throws when layerNames is null.

    In This Article
    Back to top
    Copyright © 2023 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)