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

# Tilemap Refresh All Tiles

[Tilemap](index.md) / **Tilemap Refresh All Tiles**

## Description

Executes the Refresh All Tiles method on the Tilemap component

## 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 Refresh All Tiles")]
    [Category("Tilemap/Refresh All Tiles")]
    [Description("Executes the Refresh All Tiles method on the Tilemap component")]
    
    [Image(typeof(IconTilemap), ColorTheme.Type.Purple)]
    [Keywords("Tile, Map")]
    
    [Serializable]
    public class GenInstructionTilemap_RefreshAllTiles_0 : Instruction
    {
        [SerializeField] private GetGameObject m_Tilemap = new GetGameObject(
            new GenTypeGameObject_Tilemap()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Refresh All Tiles");
            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.RefreshAllTiles();
            
            return Done;
        }
    }
}


```

