Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

ReadOnly

struct in Unity.Collections

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

A read-only alias for the value of a UnsafeBitArray. Does not have its own allocated storage.

Properties

Property Description
IsCreated Whether this array has been allocated (and not yet deallocated).
IsEmpty Whether the container is empty.
Length Returns the number of bits.

Public Methods

Method Description
CountBits Returns the number of bits in a range that are 1.
Find Finds the first length-"N" contiguous sequence of 0 bits in this bit array.
GetBits Returns a ulong which has bits copied from this array.
IsSet Returns true if the bit at an index is 1.
TestAll Returns true if all of the bits in a range are 1.
TestAny Returns true if at least one of the bits in a range is 1.
TestNone Returns true if none of the bits in a range are 1 ("i.e." all bits in the range are 0).