EntityIdsToValidArray
Converts an array of EntityIds to an array of bool values indicating whether a given EntityId from entityIds corresponds to a valid Object in memory. The Object could have been deleted or not loaded into memory yet.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
EntityIdsToValidArray(NativeArray<EntityId>, NativeArray<bool>)
Converts an array of EntityIds to an array of bool values indicating whether a given EntityId from entityIds corresponds to a valid Object in memory. The Object could have been deleted or not loaded into memory yet.
public static void EntityIdsToValidArray(NativeArray<EntityId> entityIDs, NativeArray<bool> validArray)
Parameters
EntityIdsToValidArray(ReadOnlySpan<EntityId>, Span<bool>)
Converts an array of EntityIds to an array of bool values indicating whether a given EntityId from entityIds corresponds to a valid Object in memory. The Object could have been deleted or not loaded into memory yet.
public static void EntityIdsToValidArray(ReadOnlySpan<EntityId> entityIds, Span<bool> validArray)