Unity Engine documentationScript ReferenceUnity.CollectionsNativeHashMap<TKey, TValue>Clear()Removes all key-value pairs.阅读时间1 分钟最后更新于 1 个月前Definition Type: Method Namespace: Unity.Collections Assembly: UnityEngine.ManagedKernelModule public void Clear() Remarks Does not change the capacity.