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

# Animator Write Default Values

[Animation](../index.md) / [Animator](index.md) / **Animator Write Default Values**

## Description

Executes the Write Default Values method on the Animator component

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


```

