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

ReadOnly

struct in Unity.Collections.LowLevel.Unsafe

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 UnsafeHashSet. Does not have its own allocated storage.

Properties

Property Description
Capacity The number of key-value pairs that fit in the current allocation.
Count The current number of key-value pairs in this hash map.
IsCreated Whether this hash map has been allocated (and not yet deallocated).
IsEmpty Whether this hash set is empty.

Public Methods

Method Description
Contains Returns true if a particular value is present.
GetEnumerator Returns an enumerator over the key-value pairs of this hash map.
ToNativeArray Returns an array with a copy of this set's values (in no particular order).