Animator.CrossFadeInFixedTime

Switch to Manual
public void CrossFadeInFixedTime (int stateHashName, float fixedTransitionDuration, int layer= -1, float fixedTimeOffset= 0.0f, float normalizedTransitionTime= 0.0f);
public void CrossFadeInFixedTime (string stateName, float fixedTransitionDuration, int layer= -1, float fixedTimeOffset= 0.0f, float normalizedTransitionTime= 0.0f);

Parameters

stateName状态的名称。
stateHashName状态的哈希名称。
fixedTransitionDuration过渡的持续时间(以秒为单位)。
layer发生淡入淡出效果的层。
fixedTimeOffset状态的时间(以秒为单位)。
normalizedTransitionTime过渡的时间(标准化)。

Description

使用以秒为单位的时间创建从当前状态到任何其他状态的淡入淡出效果。

When you specify a state name, or the string used to generate a hash, it should include the name of the parent layer. For example, if you have a Run state in the Base Layer, the name is Base Layer.Run.

See Also: Animator.CrossFade for normalized times.