Method AddInstances
AddInstances(int, params Vector2Int[])
Grass instances to include from the growth process with the prototype index.
Declaration
public void AddInstances(int prototypeIndex, params Vector2Int[] instances)
Parameters
Type | Name | Description |
---|---|---|
int | prototypeIndex | Grass prototype indices |
Vector2Int[] | instances | Instance indices/positions |
Remarks
The prototype associated with the instance must have been added beforehand.
Automatic growth must be disabled when using synchronous operation.
AddInstances(GrassAsset, params Vector2Int[])
Grass instances to include from the growth process withGrassAsset.
Declaration
public void AddInstances(GrassAsset grassAsset, params Vector2Int[] instances)
Parameters
Type | Name | Description |
---|---|---|
GrassAsset | grassAsset | Asset associated with grass to grow |
Vector2Int[] | instances | Indices/Positions of instances |
Remarks
The asset associated with the instance must have been added beforehand.
Automatic growth must be disabled when using synchronous operation.