# Create(Terrain, Vector2)

> Initializes and returns a scattering context object.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.TerrainTools](/engine/6000.6/script-reference/unityeditor/terraintools.md)
* **Assembly:** UnityEditor

```csharp
public static PaintTreesDetailsContext Create(Terrain terrain, Vector2 uv)
```

### Parameters

**** (\[Terrain]\(/engine/6000.6/script-reference/unityengine/terrain)): The Terrain object.**** (\[Vector2]\(/engine/6000.6/script-reference/unityengine/vector2)): The current UV position on the terrain.

### Returns

| Type                                                                                                             | Description                                                        |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| [PaintTreesDetailsContext](/engine/6000.6/script-reference/unityeditor/terraintools/painttreesdetailscontext.md) | Returns an object representing the scattering context information. |

### Remarks

Use this method to create a PaintTreesDetailsContext object. Use this object to track neighboring terrains and their UVs.

Additional Resources: [PaintDetailsToolUtility.FindDetailPrototype](/engine/6000.6/script-reference/unityeditor/terraintools/paintdetailstoolutility/finddetailprototype.md)
