2D Toolkit Forum

2D Toolkit => Support => Topic started by: Lortimus on July 09, 2013, 06:08:11 pm

Title: Tilemap: How to set unique values for different instance of same Tile/Prefab?
Post by: Lortimus on July 09, 2013, 06:08:11 pm
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!
Title: Re: Tilemap: How to set unique values for different instance of same Tile/Prefab?
Post by: unikronsoftware on July 09, 2013, 06:38:59 pm
Its currently not supported.
2D Toolkit 2.1 will support this.
Title: Re: Tilemap: How to set unique values for different instance of same Tile/Prefab?
Post by: Lortimus on July 09, 2013, 06:41:10 pm
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."
Title: Re: Tilemap: How to set unique values for different instance of same Tile/Prefab?
Post by: unikronsoftware on July 09, 2013, 06:49:27 pm
Yes. Apparently its still buggy, but we'll be fixing that before 2.1 final.
Title: Re: Tilemap: How to set unique values for different instance of same Tile/Prefab?
Post by: Lortimus on July 09, 2013, 06:52:09 pm
Thanks again