文档

Unity Engine

Unity Engine

Create(Terrain, Vector2)

Initializes and returns a scattering context object.
阅读时间1 分钟最后更新于 1 个月前

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.