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.
Read time 1 minuteLast updated 5 days ago
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 |