Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Animator Cross Fade In Fixed Time#

Animation / Animator / Animator Cross Fade In Fixed Time StateHashName, FixedTransitionDuration, Layer, FixedTimeOffset, NormalizedTransitionTime

Description#

Executes the Cross Fade In Fixed Time method on the Animator component

Parameters#

Name Description
State Hash Name
Fixed Transition Duration
Layer
Fixed Time Offset
Normalized Transition Time

Code#

// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Title("Animator Cross Fade In Fixed Time")]
    [Category("Animation/Animator/Cross Fade In Fixed Time", "StateHashName, FixedTransitionDuration, Layer, FixedTimeOffset, NormalizedTransitionTime")]
    [Description("Executes the Cross Fade In Fixed Time method on the Animator component")]
    
    [Image(typeof(IconAnimator), ColorTheme.Type.Teal)]
    [Keywords("Animation, Clip, Play, Animate")]
    
    [Parameter("State Hash Name")]
    [Parameter("Fixed Transition Duration")]
    [Parameter("Layer")]
    [Parameter("Fixed Time Offset")]
    [Parameter("Normalized Transition Time")]
    
    [Serializable]
    public class GenInstructionAnimator_CrossFadeInFixedTime_5_IntStateHashName_FloatFixedTransitionDuration_IntLayer_FloatFixedTimeOffset_FloatNormalizedTransitionTime : Instruction
    {
        [SerializeField] private GetGameObject m_Animator = new GetGameObject(
            new GenTypeGameObject_Animator()
        );
        
        [SerializeField] private GetInteger m_StateHashName = new GetInteger();
        
        [SerializeField] private GetNumber m_FixedTransitionDuration = new GetNumber();
        
        [SerializeField] private GetInteger m_Layer = new GetInteger();
        
        [SerializeField] private GetNumber m_FixedTimeOffset = new GetNumber();
        
        [SerializeField] private GetNumber m_NormalizedTransitionTime = new GetNumber();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Cross Fade In Fixed Time");
            return $"{this.m_Animator} {method} ({this.m_StateHashName}, {this.m_FixedTransitionDuration}, {this.m_Layer}, {this.m_FixedTimeOffset}, {this.m_NormalizedTransitionTime})";
        }
        
        protected override Awaitable Run(Args args)
        {
            Animator component = this.m_Animator.Get<Animator>(args);
            if (component == null) return Done;
            
            component.CrossFadeInFixedTime(
                (int) this.m_StateHashName.Get(args),
                (float) this.m_FixedTransitionDuration.Get(args),
                (int) this.m_Layer.Get(args),
                (float) this.m_FixedTimeOffset.Get(args),
                (float) this.m_NormalizedTransitionTime.Get(args)
            );
            
            return Done;
        }
    }
}

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.