docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetFirstLayerIndex

    GetFirstLayerIndex(LayerMask)

    Gets the index of the first enabled layer in this layerMask.

    Declaration
    public static int GetFirstLayerIndex(this LayerMask layerMask)
    Parameters
    Type Name Description
    LayerMask layerMask

    The layer mask.

    Returns
    Type Description
    int

    The index of the first enabled layer.

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