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

# Animator Update

[Animation](../index.md) / [Animator](index.md) / **Animator Update**

## Description

Executes the Update method on the Animator component

## Parameters

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


```

