Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TestAny(int, int)

Returns true if any of the bits in a contiguous range are 1.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public bool TestAny(int pos, int numBits = 1)

Parameters

pos

Position in the bit field (must be 0-31).

numBits

Number of bits to test (must be 1-32).

Returns

Type

Description

boolTrue if at least one bit in the contiguous range is 1.