Bearbeiten

Freigeben über


LayerExtensions Class

Definition

Extension methods for Unity's LayerMask struct

public ref class LayerExtensions abstract sealed
public static class LayerExtensions
type LayerExtensions = class
Public Module LayerExtensions
Inheritance
LayerExtensions

Fields

InvalidLayerId

The Invalid Layer Id.

Methods

Combine(LayerMask[])

Combines provided layers into a single layer mask.

FindLayerListIndex(Int32, LayerMask[])

Look through the layerMaskList and find the index in that list for which the supplied layer is part of

GetLayerId(Int32, String)

Gets a valid layer id using the layer name.

IsInLayerMask(Int32, Int32)

Checks whether a layer is in a layer mask

ToMask(Int32)

Transform layer id to LayerMask

Applies to