---
tags:
    - "Bind"
    - "Change"
    - "Detect"
    - "Value"
---

# On Game Object Change

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

## Description

Executes when the Game Object 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 Game Object Change")]
    [Image(typeof(IconCubeOutline), ColorTheme.Type.TextLight, typeof(BadgeLink))]
    
    [Description("Executes when the Game Object bound changes its value")]
    [Category("Bindings/On Game Object Change")]

    [Serializable]
    public class TriggerCoreBindGameObject : TriggerCoreBindBase
    {
        [SerializeField] private GetGameObject m_GameObject = new GetGameObject();
        
        // PROPERTIES: ----------------------------------------------------------------------------

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

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

