Метод | Описание | |
---|---|---|
Clear ( |
Clears the terrain of all trees.
|
|
OnInspectorGUI ( ) : void |
Draws the "Place" and "Clear" buttons.
|
|
PlaceRandomTrees ( |
Places random trees on the terrain.
|
Метод | Описание | |
---|---|---|
RecalculateTreePositions ( |
Invokes M:UnityEngine.TerrainData.RecalculateTreePositions using reflection. Some say it is enough to simply call M:UnityEngine.Terrain.Flush however I'm not sure what the difference is, so I'm calling this just to be on the safe side. |
public static Clear ( |
||
terrain | /// The terrain who's trees to remove. /// | |
Результат | void |
public static PlaceRandomTrees ( |
||
terrain | /// The terrain to place trees on. /// | |
mtp | /// The settings for the tree placement. /// | |
Результат | void |