UnityEssentials
Small but useful tools and features for Unity
Static Public Member Functions | List of all members
UnityEngine.LayerMaskExtensions Class Reference

Extensions for LayerMask More...

Collaboration diagram for UnityEngine.LayerMaskExtensions:
Collaboration graph

Static Public Member Functions

static bool Contains (this LayerMask mask, int layerNumber)
 Checks if the LayerMask contains a given layer. More...
 

Detailed Description

Extensions for LayerMask

Definition at line 7 of file LayerMaskExtensions.cs.

Member Function Documentation

◆ Contains()

static bool UnityEngine.LayerMaskExtensions.Contains ( this LayerMask  mask,
int  layerNumber 
)
static

Checks if the LayerMask contains a given layer.

Parameters
layerNumberThe number of the layer to check if is in the LayerMask
Returns
True if the LayerMask contains the given layer number. False if it does not.

Definition at line 16 of file LayerMaskExtensions.cs.


The documentation for this class was generated from the following file: