# transform

> The transform that was hit by the controller.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.PhysicsModule

```csharp
public Transform transform { get; }
```

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Print the transform's name that collided with this ControllerCollider
    void OnControllerColliderHit(ControllerColliderHit hit)
    {
        if (hit != null)
        {
            Debug.Log("I'm colliding with: " + hit.transform.name);
        }
    }
}
```
