docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class LayerMaskExtensions

    Extension methods for LayerMask structs.

    Inheritance
    object
    LayerMaskExtensions
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.XR.CoreUtils
    Assembly: solution.dll
    Syntax
    public static class LayerMaskExtensions

    Methods

    Name Description
    Contains(LayerMask, int)

    Checks whether a layer is in a LayerMask.

    GetFirstLayerIndex(LayerMask)

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

    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)