Show / Hide Table of Contents

Class LayerMaskExtensions

LayerMask extension methods.

Inheritance
System.Object
LayerMaskExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GlitchedPolygons.ExtensionMethods
Assembly: UnityScriptsLibrary.dll
Syntax
public static class LayerMaskExtensions

Methods

| Improve this Doc View Source

Contains(LayerMask, Int32)

Checks whether a LayerMask contains a specific layer or not.

Declaration
public static bool Contains(this LayerMask layerMask, int layer)
Parameters
Type Name Description
LayerMask layerMask

The LayerMask to check against.

System.Int32 layer

The layer to check.

Returns
Type Description
System.Boolean

Whether the LayerMask contains the layer or not.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX