Documentation

Unity Engine


Unity Engine


GetTransformLookup(bool)

Manually gets a TransformLookup object that can access a TransformRef.
Read time 1 minuteLast updated 2 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public TransformLookup GetTransformLookup(bool isReadOnly = false)

Parameters

isReadOnly

Whether the transform data is only read or is also written. Access data in a read-only fashion whenever possible.

Returns

Type

Description

TransformLookupAn array-like object that provides access to transform data, indexed by Entity.

Remarks

Remember to call TransformLookup.Update.
Assign the returned object to a field of your Job struct so that you can access the contents of the transform in a Job.
Additional Resources: ComponentLookup<T>