Method ToComponentDataArrayAsync
ToComponentDataArrayAsync<T>(AllocatorManager.AllocatorHandle, out JobHandle)
Obsolete. Use ToComponentDataListAsync<T>(AllocatorManager.AllocatorHandle, out JobHandle) instead.
Declaration
[Obsolete("This method does not correctly support enableable components, and is generally unsafe. Use ToComponentDataListAsync() instead. (RemovedAfter Entities 1.0)")]
[GenerateTestsForBurstCompatibility(GenericTypeArguments = new Type[]{typeof(BurstCompatibleComponentData)})]
public NativeArray<T> ToComponentDataArrayAsync<T>(AllocatorManager.AllocatorHandle allocator, out JobHandle jobhandle)
where T : struct, IComponentData
Parameters
Type | Name | Description |
---|---|---|
AllocatorManager.AllocatorHandle | allocator | The type of memory to allocate. |
JobHandle | jobhandle | An |
Returns
Type | Description |
---|---|
NativeArray<T> | An array containing all the values of component type |
Type Parameters
Name | Description |
---|---|
T | The component type. |
Remarks
Obsolete. Use ToComponentDataListAsync<T>(AllocatorManager.AllocatorHandle, out JobHandle) instead.
Creates (and asynchronously populates) a NativeArray containing the value of component T
for the selected entities.
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown in the query contains any enableable components. |
InvalidOperationException | Thrown if |