LayerExtensions.IsInLayerMask(Int32, Int32) Method

Definition

Checks whether a layer is in a layer mask

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsInLayerMask(int layer, int layerMask);
public static bool IsInLayerMask (this int layer, int layerMask);
static member IsInLayerMask : int * int -> bool
<Extension()>
Public Function IsInLayerMask (layer As Integer, layerMask As Integer) As Boolean

Parameters

layer
Int32
layerMask
Int32

Returns

True if the layer mask contains the layer

Applies to