Skip to content

Tilemap renderer cannot be refreshed after deletion #378

@Himil88

Description

@Himil88

hello.

I wrote a script to delete a tile at a specific location at runtime.

The deletion and tilemap collider refresh worked fine, and I even saw it in the editor.

However, I was having an issue with the renderer not automatically refreshing, leaving the tiles in place.

I tried using Tilemap.RefreshAllTiles(), Tilemap.RefreshTile, and turning the component off and on via script to update the renderer that wasn't cleared, but I couldn't resolve this issue.

The only way was to turn the component off and on directly in the editor.

Unity version: 2023.2.0b16
2D Tilemap Extra version: 4.0.2
Code for delete a tile: Tilemap.SetTile(position, null);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions