C# Class UnityEditor.TreePainter

Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthode Description
GetTreeColor ( ) : Color
GetTreeHeight ( ) : float
GetTreeRotation ( ) : float
GetTreeWidth ( ) : float

Method Details

MassPlaceTrees() public static méthode

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

PlaceTrees() public static méthode

public static PlaceTrees ( Terrain terrain, float xBase, float yBase ) : void
terrain UnityEngine.Terrain
xBase float
yBase float
Résultat void

RemoveTrees() public static méthode

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

Property Details

allowHeightVar public_oe static_oe property

public static bool allowHeightVar
Résultat bool

allowWidthVar public_oe static_oe property

public static bool allowWidthVar
Résultat bool

brushSize public_oe static_oe property

public static float brushSize
Résultat float

lockWidthToHeight public_oe static_oe property

public static bool lockWidthToHeight
Résultat bool

randomRotation public_oe static_oe property

public static bool randomRotation
Résultat bool

selectedTree public_oe static_oe property

public static int selectedTree
Résultat int

spacing public_oe static_oe property

public static float spacing
Résultat float

treeColorAdjustment public_oe static_oe property

public static float treeColorAdjustment
Résultat float

treeHeight public_oe static_oe property

public static float treeHeight
Résultat float

treeHeightVariation public_oe static_oe property

public static float treeHeightVariation
Résultat float

treeWidth public_oe static_oe property

public static float treeWidth
Résultat float

treeWidthVariation public_oe static_oe property

public static float treeWidthVariation
Résultat float