Show / Hide Table of Contents

Constructor CustomVegetation

| Edit this page View Source

CustomVegetation(GameObject, bool, VegetationConfig)

Custom vegetation from a prefab.
Can fix references for mocks.
Declaration
public CustomVegetation(GameObject prefab, bool fixReference, VegetationConfig config)
Parameters
Type Name Description
GameObject prefab The prefab for this custom vegetation.
bool fixReference If true references for Mock<T> objects get resolved at runtime by Jötunn.
VegetationConfig config The VegetationConfig for this custom vegation.
| Edit this page View Source

CustomVegetation(AssetBundle, string, bool, VegetationConfig)

Custom vegetation from a prefab loaded from an AssetBundle.
Can fix references for mocks.
Declaration
public CustomVegetation(AssetBundle assetBundle, string assetName, bool fixReference, VegetationConfig config)
Parameters
Type Name Description
AssetBundle assetBundle A preloaded AssetBundle
string assetName Name of the prefab in the bundle.
bool fixReference If true references for Mock<T> objects get resolved at runtime by Jötunn.
VegetationConfig config The VegetationConfig for this custom vegation.
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾