Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

Resources.EntityIdsToValidArray

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static void EntityIdsToValidArray(NativeArray<EntityId> entityIDs, NativeArray<bool> validArray);

Declaration

public static void EntityIdsToValidArray(ReadOnlySpan<EntityId> entityIds, Span<bool> validArray);

Parameters

Parameter Description
entityIds IDs of Object instances.
validArray Array of bool values indicating whether a given EntityId corresponds to a valid Object.

Description

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.