---
tags:
    - "Set"
    - "Change"
    - "Modify"
    - "Assign"
---

# Set Animation Clip

[Set](index.md) / **Set Animation Clip**

## Description

Sets an Animation Clip value

## Parameters

| Name | Description |
| :--- | :---------- |
| Set | Where the value is stored |
| Value | The value to store |

## Code

```cs
using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Title("Set Animation Clip")]
    [Image(typeof(IconAnimationClip), ColorTheme.Type.Teal)]
    
    [Description("Sets an Animation Clip value")]
    [Category("Set/Set Animation Clip")]
    
    [Parameter("Set", "Where the value is stored")]
    [Parameter("Value", "The value to store")]
    
    [Keywords("Set", "Change", "Modify", "Assign")]
    
    [Serializable]
    public class InstructionCoreSetAnimationClip : Instruction
    {
        [SerializeField] private SetAnimationClip m_Set = new SetAnimationClip();
        [SerializeField] private GetAnimationClip m_Value = new GetAnimationClip();

        protected override string GetTitle(GameObject source) => $"{this.m_Set} = {this.m_Value}";

        protected override Awaitable Run(Args args)
        {
            AnimationClip value = this.m_Value.Get(args);
            this.m_Set.Set(value, args);
            
            return Done;
        }
    }
}
```

