C# 클래스 UnityContrib.UnityEditor.MassTreePlacementEditor

상속: UnityEditor.Editor
파일 보기 프로젝트 열기: UnityContrib/framework

공개 메소드들

메소드 설명
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