Hey!
I'm building a 2D side scrolling prototype where the character is able to jump and land on the ground. Using the sample assets (beta) 2D Character prefab. I have created a new Unity layer called 'Ground' that is for all ground sprites that the character is able to land on.
How could I integrate this using the Tilemap? One way I have done it is to create a prefab of a tk2dprite that is going to be a ground, with a box collider and its layer assigned to Ground, and using the Tilemap Data feature to replace all instances of this sprite with the prefab I created. Is this the most optimal way? This becomes a problem for me currently as I'm using the same sprite for this ground that is turned upside down, and is not a ground, but of course since it's the same sprite the tilemap replaces them with the prefab I created.
If I do stick with the prefab/data method (if there is no better way) how would this perform? The levels are of course static - do tilemaps do static batching? Would they still be statically batched if they turn into my prefab?