---
tags:
    - "Tile, Map"
---

# Tilemap Tilemap Tile Changed

[Tilemap](index.md) / **Tilemap Tilemap Tile Changed**

## Description

Executes whenever the static Tilemap Tile Changed event of Tilemap class is invoked

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.Tilemaps;
using Unity.Collections;

namespace VisualScript.Runtime
{
    [Title("Tilemap Tilemap Tile Changed")]
    [Category("Tilemap/Tilemap Tile Changed")]
    [Description("Executes whenever the static Tilemap Tile Changed event of Tilemap class is invoked")]
    
    [Image(typeof(IconTilemap), ColorTheme.Type.Purple)]
    [Keywords("Tile, Map")]
    
    [Serializable]
    public class GenTriggerTilemap_TilemapTileChanged : Trigger
    {
        
        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Tilemap");
            string member = TextUtils.ThemeAsKeyword("Tilemap Tile Changed");
            return $"{className} {member}";
        }
        
        public override void OnDisable()
        {
            base.OnDisable();
            Tilemap.tilemapTileChanged -= this.Run;
        }
        
        public override void OnEnable()
        {
            base.OnEnable();
            Tilemap.tilemapTileChanged += this.Run;
        }
        
        private void Run(Tilemap value1, Tilemap.SyncTile[] value2)
        {
            using Args args = Args.Get(
                this.Component,
                this.Component
            );
            
            this.Run(args);
        }
    }
}


```

