Method ChangeStopTime
ChangeStopTime(float, bool)
Change the envelope so that it stops at a specific offset from its start time. Use this to extend or cut short an existing envelope, while respecting the attack and decay as much as possible.
Declaration
public void ChangeStopTime(float offset, bool forceNoDecay)
Parameters
Type | Name | Description |
---|---|---|
float | offset | When to stop the envelope |
bool | forceNoDecay | If true, envelope will not decay, but cut off instantly |