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:
Name | Type | Description |
---|---|---|
stateName | string | The name of the state. |
fixedTransitionDuration | number | The duration of the transition (in seconds). |
layer | number | The layer where the crossfade occurs. |
fixedTimeOffset | number | The time of the state (in seconds). |
normalizedTransitionTime | number | The 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)