Hello Guest

Author Topic: Tilemap: How to set unique values for different instance of same Tile/Prefab?  (Read 4829 times)

Lortimus

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 20
    • View Profile
Hi.  I did some searching and didn't see this answered anywhere...

Say I'm using the Tilemap, and I have only one tile and associated prefab that I'm going to place several times on the Tilemap.  The assigned prefab for this tile has an associated script with a single integer value that I would like to be able to modify uniquely for each placed tile in the Tilemap editor.  How would I go about doing that?  Our current workaround is to create a different tile/prefab with everything identical except the integer value, but there has to be a better way as this defeats the purpose of having a prefab.  Am I missing something or is this not a current feature?

Thanks!
« Last Edit: July 09, 2013, 06:13:52 pm by Lortimus »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Its currently not supported.
2D Toolkit 2.1 will support this.

Lortimus

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 20
    • View Profile
Thanks for the quick response.  Is this the correct relevant line in the 2.1 Beta notes?

"Tilemap editor - Instanced prefabs are saved. You can change properties on them and they will be remembered."
« Last Edit: July 09, 2013, 06:45:31 pm by Lortimus »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Yes. Apparently its still buggy, but we'll be fixing that before 2.1 final.

Lortimus

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 20
    • View Profile
Thanks again