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