ドキュメント

Unity Engine

Download Unity

Unity Engine

ToEntityArrayAsync(AllocatorHandle, out JobHandle)

Obsolete. Use EntityQuery.ToEntityListAsync instead.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

ToEntityArrayAsync(AllocatorHandle, JobHandle)

注意
Deprecated. This method does not correctly support enableable components, and is generally unsafe. Use ToEntityListAsync() instead. (RemovedAfter Entities 1.0)
public NativeArray<Entity> ToEntityArrayAsync(AllocatorManager.AllocatorHandle allocator, out JobHandle jobhandle)

Parameters

The type of memory to allocate.

jobhandle

An
out
parameter assigned a handle that you can use as a dependency for a Job that uses the output data.

Returns

Type

Description

NativeArray<Entity>An array containing all the entities selected by the query. The contents of this array must not be accessed before
jobhandle
has been completed.

Remarks

Obsolete. Use EntityQuery.ToEntityListAsync instead.
Creates (and asynchronously populates) a NativeArray containing the selected entities.