Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Tilemap Tilemap Positions Changed#

Tilemap / Tilemap Tilemap Positions Changed

Description#

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

Code#

// <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 Positions Changed")]
    [Category("Tilemap/Tilemap Positions Changed")]
    [Description("Executes whenever the static Tilemap Positions Changed event of Tilemap class is invoked")]
    
    [Image(typeof(IconTilemap), ColorTheme.Type.Purple)]
    [Keywords("Tile, Map")]
    
    [Serializable]
    public class GenTriggerTilemap_TilemapPositionsChanged : Trigger
    {
        
        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Tilemap");
            string member = TextUtils.ThemeAsKeyword("Tilemap Positions Changed");
            return $"{className} {member}";
        }
        
        public override void OnDisable()
        {
            base.OnDisable();
            Tilemap.tilemapPositionsChanged -= this.Run;
        }
        
        public override void OnEnable()
        {
            base.OnEnable();
            Tilemap.tilemapPositionsChanged += this.Run;
        }
        
        private void Run(Tilemap value1, NativeArray<Vector3Int> value2)
        {
            using Args args = Args.Get(
                this.Component,
                this.Component
            );
            
            this.Run(args);
        }
    }
}

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.