Version: 2017.3

Physics2D.GetLayerCollisionMask

Cambiar al Manual
public static int GetLayerCollisionMask (int layer);

Parámetros

layer The layer to retrieve the collision layer mask for.

Valor de retorno

int A mask where each bit indicates a layer and whether it can collide with layer or not.

Descripción

Get the collision layer mask that indicates which layer(s) the specified layer can collide with.