CustomFade.

CalculateWeight(float) Method

Summary

Returns the desired weight for the target state at the specified `progress` (ranging from 0 to 1).
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
CustomFade

Syntax

protected abstract float CalculateWeight(float progress)

Remarks

This method should return 0 when the `progress` is 0 and 1 when the `progress` is 1. It can do anything you want with other values, but violating that guideline will trigger Animancer.OptionalWarning.CustomFadeBounds.

Parameters

Name Type Description
progress float

Return Value

Type Description
float