docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method NameToLayer

    NameToLayer(string)

    Given an Interaction Layer name, returns the index as defined by either a Builtin or a User Layer.

    Declaration
    public static int NameToLayer(string layerName)
    Parameters
    Type Name Description
    string layerName

    The interaction layer name.

    Returns
    Type Description
    int

    Returns the index of the supplied Interaction Layer name.

    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)