Constructor CustomVegetation
| Improve this Doc View SourceCustomVegetation(GameObject, bool, VegetationConfig)
Custom vegetation from a prefab.
Can fix references for mocks.
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. |
CustomVegetation(AssetBundle, string, bool, VegetationConfig)
Custom vegetation from a prefab loaded from an AssetBundle.
Can fix references for mocks.
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. |