Method GrowFromInstances
GrowFromInstances(IList<int>, params Vector2Int[])
Grows plant instances associated to indices prototypes specified manually.
Declaration
public void GrowFromInstances(IList<int> prototypeIndices, params Vector2Int[] instances)
Parameters
Type | Name | Description |
---|---|---|
IList<int> | prototypeIndices | Grass prototype indices |
Vector2Int[] | instances | Instance indices/positions |
Remarks
Automatic growth must be disabled when using synchronous operation.
GrowFromInstances(IList<GrassAsset>, params Vector2Int[])
Grows plant instances associated toGrassAssetspecified manually.
Declaration
public void GrowFromInstances(IList<GrassAsset> grassAssets, params Vector2Int[] instances)
Parameters
Type | Name | Description |
---|---|---|
IList<GrassAsset> | grassAssets | Assets associated with grass to grow |
Vector2Int[] | instances | Indices/Positions of instances |
Remarks
Automatic growth must be disabled when using synchronous operation.
GrowFromInstances(int, params Vector2Int[])
Grows plant instances associated to index prototype specified manually.
Declaration
public void GrowFromInstances(int prototypeIndex, params Vector2Int[] instances)
Parameters
Type | Name | Description |
---|---|---|
int | prototypeIndex | grass prototype index |
Vector2Int[] | instances | Indices/Positions of instances |
Remarks
Automatic growth must be disabled when using synchronous operation.
GrowFromInstances(GrassAsset, params Vector2Int[])
Grows plant instances associated to theGrassAssetspecified manually.
Declaration
public void GrowFromInstances(GrassAsset grassAsset, params Vector2Int[] instances)
Parameters
Type | Name | Description |
---|---|---|
GrassAsset | grassAsset | Asset associated with grass to grow |
Vector2Int[] | instances | Indices/Positions of instances |
Remarks
Automatic growth must be disabled when using synchronous operation.