# GetTransformRef(Entity, bool)

> Gets a reference to the transform of an entity.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public TransformRef GetTransformRef(Entity entity, bool isReadOnly = false)
```

### Parameters

**** (\[Entity]\(/engine/7000.0/script-reference/unity/entities/entity)): The entity.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether the reference is only used to read the transform.

### Returns

| Type                                                                           | Description                            |
| ------------------------------------------------------------------------------ | -------------------------------------- |
| [TransformRef](/engine/7000.0/script-reference/unity/entities/transformref.md) | A reference to the entity's transform. |
