기술 자료

Unity Engine

Unity Engine

AreBitsSet(PhysicsMask)

Checks if all the provided PhysicsMask set bits are also set in this PhysicsMask.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public readonly bool AreBitsSet(PhysicsMask physicsMask)

Parameters

physicsMask

The PhysicsMask bits to compare to this PhysicsMask. If this is zero, false will always be returned.

Returns

Type

Description

boolTrue if all bits in the specified PhysicsMask are also set in this PhysicsMask, false otherwise.