Class
- Namespace
- CoreFramework
Provides extension methods for Unity's LayerMask structure.
public static class LayerMaskExtensions
- Inheritance
-
object
Methods
Contains(LayerMask, int)
Checks if the given layer number is contained in the LayerMask.
public static bool Contains(this LayerMask mask, int layerNumber)
Parameters
mask
LayerMaskThe LayerMask to check.
layerNumber
intThe layer number to check if it is contained in the LayerMask.
Returns
- bool
True if the layer number is contained in the LayerMask, otherwise false.