AsReadOnly()
Returns a readonly version of this NativeHashMap instance.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
public NativeHashMap<TKey, TValue>.ReadOnly AsReadOnly()
Returns
Type | Description |
|---|---|
| ReadOnly | ReadOnly instance for this. |
Remarks
ReadOnly containers point to the same underlying data as the NativeHashMap it is made from.