# DetailInstanceTransform

> Describes the transform of a Terrain detail object.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.TerrainModule

```csharp
public struct DetailInstanceTransform
```

## Remarks

Additional Resources: [TerrainData.ComputeDetailInstanceTransforms](/engine/6000.5/script-reference/unityengine/terraindata/computedetailinstancetransforms.md).

## Fields

| Value                                                                                         | Description                                                                                                                                   |
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| [posX](/engine/6000.5/script-reference/unityengine/detailinstancetransform/posx.md)           | The X coordinate of the detail object in the Terrain's local space. To get the X in world space, add this value to position X of the Terrain. |
| [posY](/engine/6000.5/script-reference/unityengine/detailinstancetransform/posy.md)           | The Y coordinate of the detail object in the Terrain's local space. To get the Y in world space, add this value to position Y of the Terrain. |
| [posZ](/engine/6000.5/script-reference/unityengine/detailinstancetransform/posz.md)           | The Z coordinate of the detail object in the Terrain's local space. To get the Z in world space, add this value to position Z of the Terrain. |
| [rotationY](/engine/6000.5/script-reference/unityengine/detailinstancetransform/rotationy.md) | The angle, in radians, at which the detail object rotates around the Y-axis.                                                                  |
| [scaleXZ](/engine/6000.5/script-reference/unityengine/detailinstancetransform/scalexz.md)     | The X and Z scale values of the detail object. These two values are always the same.                                                          |
| [scaleY](/engine/6000.5/script-reference/unityengine/detailinstancetransform/scaley.md)       | The Y scale value of the detail object.                                                                                                       |
