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 Play In Fixed Time#

Animation / Animator / Animator Play In Fixed Time StateNameHash, Layer, FixedTime

Description#

Executes the Play In Fixed Time method on the Animator component

Parameters#

Name Description
State Name Hash
Layer
Fixed 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 Play In Fixed Time")]
    [Category("Animation/Animator/Play In Fixed Time", "StateNameHash, Layer, FixedTime")]
    [Description("Executes the Play In Fixed Time method on the Animator component")]
    
    [Image(typeof(IconAnimator), ColorTheme.Type.Teal)]
    [Keywords("Animation, Clip, Play, Animate")]
    
    [Parameter("State Name Hash")]
    [Parameter("Layer")]
    [Parameter("Fixed Time")]
    
    [Serializable]
    public class GenInstructionAnimator_PlayInFixedTime_3_IntStateNameHash_IntLayer_FloatFixedTime : Instruction
    {
        [SerializeField] private GetGameObject m_Animator = new GetGameObject(
            new GenTypeGameObject_Animator()
        );
        
        [SerializeField] private GetInteger m_StateNameHash = new GetInteger();
        
        [SerializeField] private GetInteger m_Layer = new GetInteger();
        
        [SerializeField] private GetNumber m_FixedTime = new GetNumber();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Play In Fixed Time");
            return $"{this.m_Animator} {method} ({this.m_StateNameHash}, {this.m_Layer}, {this.m_FixedTime})";
        }
        
        protected override Awaitable Run(Args args)
        {
            Animator component = this.m_Animator.Get<Animator>(args);
            if (component == null) return Done;
            
            component.PlayInFixedTime(
                (int) this.m_StateNameHash.Get(args),
                (int) this.m_Layer.Get(args),
                (float) this.m_FixedTime.Get(args)
            );
            
            return Done;
        }
    }
}

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