---
tags:
    - "Position"
    - "Direction"
    - "3D"
    - "Bind"
    - "Change"
    - "Detect"
    - "Value"
---

# On Vector3 Change

[Bindings](index.md) / **On Vector3 Change**

## Description

Executes when the Vector3 bound changes its value

## Parameters

| Name | Description |
| :--- | :---------- |
| Initial Emit | Emits the event immediately when the component is enabled or not |

## Code

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

namespace VisualScript.Runtime
{
    [Title("On Vector3 Change")]
    [Image(typeof(IconVector3), ColorTheme.Type.Lime, typeof(BadgeLink))]
    
    [Description("Executes when the Vector3 bound changes its value")]
    [Category("Bindings/On Vector3 Change")]
    
    [Keywords("Position", "Direction", "3D")]

    [Serializable]
    public class TriggerCoreBindVector3 : TriggerCoreBindBase
    {
        [SerializeField] private GetVector3 m_Vector3 = new GetVector3();
        
        // PROPERTIES: ----------------------------------------------------------------------------

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

        protected override ISubscription Subscription => this.m_Vector3;
    }
}
```

