Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


UnsafeHashSet<T>.ReadOnly

A read-only alias for the value of a UnsafeHashSet. Does not have its own allocated storage.
Read time 1 minuteLast updated 14 days ago

Definition

public struct UnsafeHashSet<T>.ReadOnly : IEnumerable<T>, IEnumerable

Properties

Property

Description

CapacityThe number of key-value pairs that fit in the current allocation.
CountThe current number of key-value pairs in this hash map.
IsCreatedWhether this hash map has been allocated (and not yet deallocated).
IsEmptyWhether this hash set is empty.

Methods

Method

Description

ContainsReturns true if a particular value is present.
GetEnumeratorReturns an enumerator over the key-value pairs of this hash map.
ToNativeArrayReturns an array with a copy of this set's values (in no particular order).