ドキュメント

Unity Engine

Download Unity

Unity Engine

DidChange(Entity, uint)

Reports whether any of TransformRef components in the chunk containing the specified Entity could have changed since a previous version.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public bool DidChange(Entity entity, uint version)

Parameters

entity

The entity.

version

The version to compare. In a system, this parameter should be set to the current ComponentSystemBase.LastSystemVersion at the time the job is run or scheduled.

Returns

Type

Description

boolTrue, if the version number stored in the chunk for this component is more recent than the version passed to the
version
parameter.

Remarks

Note that for efficiency, the change version applies to whole chunks not individual entities. The change version is incremented even when another job or system that has declared write access to a component does not actually change the component value.