文档

Unity Engine

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.
阅读时间1 分钟最后更新于 16 天前

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.