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

# On String Change

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

## Description

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

    [Serializable]
    public class TriggerCoreBindString : TriggerCoreBindBase
    {
        [SerializeField] private GetString m_String = new GetString();
        
        // PROPERTIES: ----------------------------------------------------------------------------

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

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

