LayerExtensions.IsInLayerMask(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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