Property | Type | Description | |
---|---|---|---|
bounds | Bounds | ||
generator | LSystem | ||
groundColor | Color | ||
horizonColor | Color | ||
leavesVariation | Variation | ||
lightColor | Color | ||
paletteSaturation | float | ||
paletteValue | float | ||
placementSeed | int | ||
prefab | GameObject | ||
skyColor | Color | ||
skybox | Material | ||
starField | StarField | ||
starsColor | Color | ||
sunLight | Light |
Method | Description | |
---|---|---|
AddVariationColors ( List |
||
Place ( ) : void | ||
PlaceObject ( GameObject prefab, Vector3 pos, int x, int z, float spacing ) : void | ||
Randomize ( bool newTheme = true ) : void | ||
Randomize ( int seed, bool newTheme = true ) : void | ||
RandomizeColors ( Rand hash, bool newTheme = true ) : void | ||
RandomizePlacement ( Rand hash, bool newTheme = true ) : void | ||
RandomizeTrees ( Rand hash, bool newTheme = true ) : void | ||
UpdateGlobals ( ) : void |
Method | Description | |
---|---|---|
CalculateColor ( List |
||
Clamp ( Vector2 value, float min, float max ) : Vector2 | ||
FullToPositiveRange ( float full ) : float | ||
GetColor ( Variation, variation, float t ) : Color | ||
GetPrimaryColors ( Color baseColor, Rand hash ) : List |
||
LerpColorInHSV ( Color a, Color b, float t ) : Color | ||
PickBestColor ( List |
||
RandomVariation ( Rand hash, Vector2 reference, float fraction ) : Vector2 | ||
RandomVariation ( Rand hash, float reference, float fraction ) : float | ||
WrapHueAround ( Vector4 colorToModify, Vector4 colorToCompareWith ) : Color |
public AddVariationColors ( List |
||
colors | List |
|
rand | Rand | |
return | void |
public PlaceObject ( GameObject prefab, Vector3 pos, int x, int z, float spacing ) : void | ||
prefab | GameObject | |
pos | Vector3 | |
x | int | |
z | int | |
spacing | float | |
return | void |
public Randomize ( bool newTheme = true ) : void | ||
newTheme | bool | |
return | void |
public Randomize ( int seed, bool newTheme = true ) : void | ||
seed | int | |
newTheme | bool | |
return | void |
public RandomizeColors ( Rand hash, bool newTheme = true ) : void | ||
hash | Rand | |
newTheme | bool | |
return | void |
public RandomizePlacement ( Rand hash, bool newTheme = true ) : void | ||
hash | Rand | |
newTheme | bool | |
return | void |
public RandomizeTrees ( Rand hash, bool newTheme = true ) : void | ||
hash | Rand | |
newTheme | bool | |
return | void |