Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Create(Terrain, Vector2)

Initializes and returns a scattering context object.
Read time 1 minuteLast updated 13 days ago

Definition

public static PaintTreesDetailsContext Create(Terrain terrain, Vector2 uv)

Parameters

terrain

The Terrain object.

The current UV position on the terrain.

Returns

Type

Description

PaintTreesDetailsContextReturns 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.