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

# Set Vector3

[Set](index.md) / **Set Vector3**

## Description

Sets a Vector3 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 Vector3")]
    [Image(typeof(IconVector3), ColorTheme.Type.Lime)]
    
    [Description("Sets a Vector3 value")]
    [Category("Set/Set Vector3")]
    
    [Parameter("Set", "Where the value is stored")]
    [Parameter("Value", "The value to store")]
    
    [Keywords("Set", "Change", "Modify", "Assign")]
    
    [Serializable]
    public class InstructionCoreSetVector3 : Instruction
    {
        [SerializeField] private SetVector3 m_Set = new SetVector3();
        [SerializeField] private GetVector3 m_Value = new GetVector3();

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

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

