Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TileMap: tiles from a scene collection are re-created each time a new cell is added #62078

Closed
DarkMessiah opened this issue Jun 15, 2022 · 1 comment

Comments

@DarkMessiah
Copy link
Contributor

DarkMessiah commented Jun 15, 2022

Godot version

4.0.alpha10

System information

Windows 11, RTX 3070 TI

Issue description

If you use a Scene Collection in a TileMap, when you add a new cell to a TileMap, all tiles in a layer are re-created.

Godot_v4 0-alpha10_win64_erFrZOpnB6

Scene Tile:
image

Code:

extends Node2D

func _ready():
	randomize()
	var r = randf()
	var g = randf()
	var b = randf()
	$Label.text = name
	$Label2.text = str(get_instance_id())
	$Sprite2D.modulate = Color(r, g, b)

Steps to reproduce

  1. Create a Scene Collection in a TileSet and add a scene to it.
  2. Set few cells in a TileSet at runtime.
  3. All nodes in a layer will re-created every time you set a new cell.

Minimal reproduction project

SceneTiles.zip

@KoBeWi
Copy link
Member

KoBeWi commented Jun 15, 2022

Seems like same issue as #58034

@KoBeWi KoBeWi closed this as not planned Won't fix, can't repro, duplicate, stale Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants