Summary
Calls
Animancer.AnimancerNode.OnStartFade and starts fading the Animancer.AnimancerNode.Weight
over the course of the `fadeDuration` (in seconds).
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerNode
Syntax
public void StartFade(float targetWeight, float fadeDuration)
Remarks
If the `targetWeight` is 0 then
Animancer.AnimancerNode.Stop will be called when the fade is complete.
If the Animancer.AnimancerNode.Weight is already equal to the `targetWeight`
then the fade will end immediately.
Animancer Lite only allows a `targetWeight` of 0 or 1
and the default `fadeDuration` (0.25 seconds) in runtime builds.
Parameters
| Name | Type | Description |
|---|---|---|
| targetWeight | float | |
| fadeDuration | float |
Return Value
| Type | Description |
|---|---|
| void |