Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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


Array of bool values indicating whether a given EntityId corresponds to a valid Object.

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)

Parameters

IDs of Object instances.

validArray

Array of bool values indicating whether a given EntityId corresponds to a valid Object.