[Tilemaps] StartUp not running when overriding tile uses the same Instanced Game Object

I have two different ScriptableTiles. Both tiles run some initialization code in StartUp. Both also happen to have the same Instanced Game Object. The result of this is that none of the StartUp initialization code is running when I paint one of these tiles over the other. This does not happen if the Instanced Game Objects are not the same

I suspect this is some kind of optimization by the tilemap. I don’t want this optimization to happen though. Is there some way of making StartUp run regardless of Instanced Game Objects?

This sounds like a bug. We will check this out, thanks!

Thanks for the response! I did not know it wasn’t intentional behavior. I made a minimalistic repro sample project. Would you like to check it out?

Any idea of a smooth workaround to this problem meanwhile?

No need for a repro?

If you do have one that you could share with us, that would be great, thanks!

Unfortunately, I do not think there is a smooth workaround to this. I believe the Tilebase.StartUp call will not be called in this case as well.

I do!

7105534–847303–tilemapbugrepro.unitypackage (11.9 KB)

Thanks!