Documentation

Unity Engine


Unity Engine


GetTransformRef(Entity, bool)

Gets the TransformRef of an entity.
Read time 1 minuteLast updated a day ago

Definition

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

Parameters

entity

The entity.

isReadOnly

True for read-only access, or false for read/write access.

Returns

Type

Description

TransformRefThe TransformRef to the entity.

Remarks

Using this method registers a read-only or read/write dependency for the system on TransformRef, based on the value passed to
isReadOnly
.