---
tags:
    - "Animation, Clip, Play, Animate"
---

# Animator Play In Fixed Time

[Animation](../index.md) / [Animator](index.md) / **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

```cs
// <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;
        }
    }
}


```

