Table of Contents

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 LayerMask

The LayerMask to check.

layerNumber int

The 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.