Documentation

Unity Engine

Unity Engine

GetTransformRef(Entity, bool)

Gets a reference to the transform of an entity.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public TransformRef GetTransformRef(Entity entity, bool isReadOnly = false)

Parameters

entity

The entity.

isReadOnly

Whether the reference is only used to read the transform.

Returns

Type

Description

TransformRefA reference to the entity's transform.