Version: 2022.3

Resources.InstanceIDsToValidArray

切换到手册
public static void InstanceIDsToValidArray (NativeArray<int> instanceIDs, NativeArray<bool> validArray);
public static void InstanceIDsToValidArray (ReadOnlySpan<int> instanceIDs, Span<bool> validArray);

参数

instanceIDs IDs of Object instances.
validArray Array of bools indicating whether a given instance ID corresponds to a valid Object.

描述

Translates an array of instance IDs to an array of bools indicating whether a given instance ID from instanceIDs corresponds to a valid Object.

instanceIDs and validArray must be of the same length. The value at each index in validArray corresponds with the instance ID at the same index in instanceIDs.