Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AreAnyBitsSet(PhysicsMask)

Checks if any of the provided PhysicsMask set bits are also set in this PhysicsMask.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public readonly bool AreAnyBitsSet(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 any set bits in the specified PhysicsMask are also set in this PhysicsMask, false otherwise.