文档

Unity Engine

Unity Engine

AreAnyBitsSet(PhysicsMask)

Checks if any of the provided PhysicsMask set bits are also set in this PhysicsMask.
阅读时间1 分钟最后更新于 1 个月前

Definition

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.