文档

Unity Engine

Download Unity

Unity Engine

AddDependency(JobHandle)

Adds another job handle to this EntityQuery's dependencies.
阅读时间1 分钟最后更新于 20 天前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public JobHandle AddDependency(JobHandle job)

Parameters

Handle for the job to add to the query's dependencies.

Returns

Type

Description

JobHandleThe new combined job handle for the query's dependencies.

Remarks

An entity query uses jobs internally when required to create arrays of entities and chunks. This junction adds an external job as a dependency for those internal jobs.