C# Class UnityEditor.TreePainter

显示文件 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_oe static_oe property

public static bool allowHeightVar
return bool

allowWidthVar public_oe static_oe property

public static bool allowWidthVar
return bool

brushSize public_oe static_oe property

public static float brushSize
return float

lockWidthToHeight public_oe static_oe property

public static bool lockWidthToHeight
return bool

randomRotation public_oe static_oe property

public static bool randomRotation
return bool

selectedTree public_oe static_oe property

public static int selectedTree
return int

spacing public_oe static_oe property

public static float spacing
return float

treeColorAdjustment public_oe static_oe property

public static float treeColorAdjustment
return float

treeHeight public_oe static_oe property

public static float treeHeight
return float

treeHeightVariation public_oe static_oe property

public static float treeHeightVariation
return float

treeWidth public_oe static_oe property

public static float treeWidth
return float

treeWidthVariation public_oe static_oe property

public static float treeWidthVariation
return float