C# Класс UnityContrib.UnityEditor.MassTreePlacementEditor

Наследование: UnityEditor.Editor
Показать файл Открыть проект

Открытые методы

Метод Описание
Clear ( Terrain terrain ) : void

Clears the terrain of all trees.

OnInspectorGUI ( ) : void

Draws the "Place" and "Clear" buttons.

PlaceRandomTrees ( Terrain terrain, MassTreePlacement mtp ) : void

Places random trees on the terrain.

Приватные методы

Метод Описание
RecalculateTreePositions ( TerrainData data ) : void

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.

Описание методов

Clear() публичный статический Метод

Clears the terrain of all trees.
public static Clear ( Terrain terrain ) : void
terrain UnityEngine.Terrain /// The terrain who's trees to remove. ///
Результат void

OnInspectorGUI() публичный Метод

Draws the "Place" and "Clear" buttons.
public OnInspectorGUI ( ) : void
Результат void

PlaceRandomTrees() публичный статический Метод

Places random trees on the terrain.
public static PlaceRandomTrees ( Terrain terrain, MassTreePlacement mtp ) : void
terrain UnityEngine.Terrain /// The terrain to place trees on. ///
mtp UnityContrib.UnityEngine.MassTreePlacement /// The settings for the tree placement. ///
Результат void