docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method LayerToName

    LayerToName(int)

    Given a layer number, returns the name of the Interaction Layer as defined in either a Builtin or a User Layer.

    Declaration
    public static string LayerToName(int layer)
    Parameters
    Type Name Description
    int layer

    The interaction layer bit index.

    Returns
    Type Description
    string

    Returns the name of the supplied Interaction Layer value.

    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)