| Parameter | Description |
|---|---|
| entityIDs | The EntityIDs of the Object instances to check. |
| validArray | The array that receives the results. The method sets each element to true if the EntityID at the same index in entityIDs corresponds to a valid Object, otherwise false. Must be the same length as entityIDs. |
Checks whether each EntityID in a NativeArray<T0> corresponds to a valid Object in memory, and writes the result for each to a given NativeArray<T0>.
It can be useful to call this method to determine if an Object might have been deleted or isn't loaded into memory yet. This is similar to Resources.EntityIdIsValid but checks several EntityIDs at once. Both arrays must be initialized and the same length, otherwise the method throws an ArgumentException.
| Parameter | Description |
|---|---|
| entityIds | The EntityIDs of the Object instances to check. |
| validArray | The span that receives the results. The method sets each element to true if the EntityID at the same index in entityIds corresponds to a valid Object, otherwise false. Must be the same length as entityIds. |
Checks whether each EntityID in an array corresponds to a valid Object in memory, and writes the result for each to a given array.
This is similar to Resources.EntityIdIsValid but checks several EntityIDs at once. entityIds and validArray must be the same length, otherwise the method throws an ArgumentException.