PhysicsMask
Create a PhysicsMask by specifying multiple bits to set (1).
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Constructor
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
PhysicsMask(int[])
Create a PhysicsMask by specifying multiple bits to set (1).
public PhysicsMask(params int[] bitIndicies)
Parameters
The indices of the bits to set in the mask. An index must be in the range [0, 63].
PhysicsMask(LayerMask)
Create a PhysicsMask from a LayerMask. A LayerMask is only 32-bits wide so the PhysicsMask will have the upper 32-bits set to zero.
public PhysicsMask(LayerMask layerMask)
Parameters
The LayerMask to use.