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 Resize Bounds#

Tilemap / Tilemap Resize Bounds

Description#

Executes the Resize Bounds method on the Tilemap component

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 Resize Bounds")]
    [Category("Tilemap/Resize Bounds")]
    [Description("Executes the Resize Bounds method on the Tilemap component")]
    
    [Image(typeof(IconTilemap), ColorTheme.Type.Purple)]
    [Keywords("Tile, Map")]
    
    [Serializable]
    public class GenInstructionTilemap_ResizeBounds_0 : Instruction
    {
        [SerializeField] private GetGameObject m_Tilemap = new GetGameObject(
            new GenTypeGameObject_Tilemap()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Resize Bounds");
            return $"{this.m_Tilemap} {method}";
        }
        
        protected override Awaitable Run(Args args)
        {
            Tilemap component = this.m_Tilemap.Get<Tilemap>(args);
            if (component == null) return Done;
            
            component.ResizeBounds();
            
            return Done;
        }
    }
}

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