C# Class UnityEditor.TreePainter

Show file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Properties

Property Type Description
allowHeightVar bool
allowWidthVar bool
brushSize float
lockWidthToHeight bool
randomRotation bool
selectedTree int
spacing float
treeColorAdjustment float
treeHeight float
treeHeightVariation float
treeWidth float
treeWidthVariation float

Public Methods

Method Description
MassPlaceTrees ( TerrainData terrainData, int numberOfTrees, bool randomTreeColor, bool keepExistingTrees ) : void
PlaceTrees ( Terrain terrain, float xBase, float yBase ) : void
RemoveTrees ( Terrain terrain, float xBase, float yBase, bool clearSelectedOnly ) : void

Private Methods

Method Description
GetTreeColor ( ) : Color
GetTreeHeight ( ) : float
GetTreeRotation ( ) : float
GetTreeWidth ( ) : float

Method Details

MassPlaceTrees() public static method

public static MassPlaceTrees ( TerrainData terrainData, int numberOfTrees, bool randomTreeColor, bool keepExistingTrees ) : void
terrainData UnityEngine.TerrainData
numberOfTrees int
randomTreeColor bool
keepExistingTrees bool
return void

PlaceTrees() public static method

public static PlaceTrees ( Terrain terrain, float xBase, float yBase ) : void
terrain UnityEngine.Terrain
xBase float
yBase float
return void

RemoveTrees() public static method

public static RemoveTrees ( Terrain terrain, float xBase, float yBase, bool clearSelectedOnly ) : void
terrain UnityEngine.Terrain
xBase float
yBase float
clearSelectedOnly bool
return void

Property Details

allowHeightVar public static property

public static bool allowHeightVar
return bool

allowWidthVar public static property

public static bool allowWidthVar
return bool

brushSize public static property

public static float brushSize
return float

lockWidthToHeight public static property

public static bool lockWidthToHeight
return bool

randomRotation public static property

public static bool randomRotation
return bool

selectedTree public static property

public static int selectedTree
return int

spacing public static property

public static float spacing
return float

treeColorAdjustment public static property

public static float treeColorAdjustment
return float

treeHeight public static property

public static float treeHeight
return float

treeHeightVariation public static property

public static float treeHeightVariation
return float

treeWidth public static property

public static float treeWidth
return float

treeWidthVariation public static property

public static float treeWidthVariation
return float