Physics2D.GetLayerCollisionMask

매뉴얼로 전환
public static int GetLayerCollisionMask (int layer);

파라미터

layerThe layer to retrieve the collision layer mask for.

반환

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

설명

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