Skip to main content

Animator.CrossFadeInFixedTime(string stateName, number fixedTransitionDuration, number layer = -1, number fixedTimeOffset = 0, number normalizedTransitionTime = 0)

Creates a crossfade from the current state to any other state using times in seconds.

Parameters:

NameTypeDescription
stateNamestringThe name of the state.
fixedTransitionDurationnumberThe duration of the transition (in seconds).
layernumberThe layer where the crossfade occurs.
fixedTimeOffsetnumberThe time of the state (in seconds).
normalizedTransitionTimenumberThe time of the transition (normalized).

Usage

---@type Animator
local animator;

---@type string
local stateName;

---@type number
local fixedTransitionDuration;

---@type number
local layer;

---@type number
local fixedTimeOffset;

---@type number
local normalizedTransitionTime;


animator.CrossFadeInFixedTime(stateName, fixedTransitionDuration, layer, fixedTimeOffset, normalizedTransitionTime)