Documentation

Unity Engine


Unity Engine


TransformTypeHandle

A handle to the TransformRef component type, used to access an ArchetypeChunk 's transform component data in a job.
Read time 1 minuteLast updated 3 days ago

Definition

  • Type: Struct
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public struct TransformTypeHandle

Remarks

Passing a type handle to a job automatically registers the job as a reader or writer of that type, which allows the DOTS safety system to detect potential race conditions between concurrent jobs which access the same component type.
To create a TransformTypeHandle, use SystemState.GetTransformTypeHandle.
If the component type is not known at compile time, use DynamicComponentTypeHandle.

Properties

Property

Description

GlobalSystemVersionThe global system version for which this handle is valid.
IsReadOnlyReports whether this type handle was created in read-only mode.

Methods

Method

Description

ToFixedStringReturns the formatted FixedString "TransformTypeHandle".
UpdateWhen a TransformTypeHandle is cached by a system across multiple system updates, calling this function inside the system's OnUpdate() method performs the minimal incremental updates necessary to make the type handle safe to use.