HybridAnimancerComponent.

CrossFade(string, float, int, float) Method

Summary

Starts a transition from the current state to the specified state using normalized times.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
HybridAnimancerComponent

Syntax

public AnimancerState CrossFade(string stateName, float fadeDuration = -1, int layer = -1, float normalizedTime = -Infinity)

Remarks

If `fadeDuration` is negative, it uses the Animancer.AnimancerGraph.DefaultFadeDuration.

Parameters

Name Type Description
stateName string
fadeDuration float
layer int
normalizedTime float

Return Value

Type Description
AnimancerState