Summary
Computes the progression of a transition, returning a value between 0f and 1f that is typically used as a weight.
Syntax
public float GetTransitionWeight(float transitionTime, out bool isDone)
Parameters
Name |
Type |
Description |
transitionTime |
float |
Current transition time in seconds. |
isDone |
bool |
An out parameter that indicate if the transition is done.
This value is needed as checking for a weight value >= to 1f doesn't cover every cases. |
Return Value
Type |
Description |
float |
The computed weight of the transition. |