Method UpdateRecentering
UpdateRecentering(float, bool)
Call this to manage re-centering axis value to axis center. This assumes that TrackValueChange() has been called already this frame.
Declaration
public void UpdateRecentering(float deltaTime, bool forceCancel)
Parameters
Type | Name | Description |
---|---|---|
float | deltaTime | Current deltaTime, or -1 for immediate re-centering |
bool | forceCancel | If true, cancel any re-centering currently in progress and reset the timer. |