Optional(NativeArray<T>, int)
Stores a safe reference to a component from an array of components at the index. If the array is empty stores a null reference.
阅读时间1 分钟最后更新于 20 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public static RefRO<T> Optional(NativeArray<T> componentDataArray, int index)
Parameters
Returns
Type | Description |
|---|---|
| RefRO<T> | Read-only optional reference to component |