Extensions.Contains

Extension Method in Extensions

Declaration

public static bool Contains(this LayerMask mask, int layer)

Description

Checks if the given layer is included in the mask.

Parameters

maskThe mask to check.
layerThe layer to check.

Returns

boolTrue if the layer is included in the mask, false otherwise.