Method GetTransformRef
GetTransformRef(Entity, bool)
Gets the TransformRef of an entity.
Declaration
[GenerateTestsForBurstCompatibility]
public TransformRef GetTransformRef(Entity entity, bool isReadOnly)
Parameters
| Type | Name | Description |
|---|---|---|
| Entity | entity | The entity. |
| bool | isReadOnly | True for read-only access, or false for read/write access. |
Returns
| Type | Description |
|---|---|
| TransformRef | The 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.