1
Support / Re: Tilemaps and passing Prefab Data
« on: July 18, 2014, 06:50:21 pm »String int and float data are stored per tile TYPE, not per tile.
When you commit the tilemap, you can select individual prefabs and change properties on them. It should remember the changes.
I understand it's per type, sorry if I wasn't clear. For example, I have two separate tiles in the palette, a single coin and a coin worth 5. I'd rather just have them both spawn the same prefab, but pass the integer to be either 1 or 5.
I'm not sure how I pass or read this integer though. I'm assuming somewhere in the coincontroller script's constructor I should be able to read the integer from the tilemap, but am unable to figure it out.