Do I need to use tiling on sprite game object?

I am currently working on a platformer project to learn unity. I have a question regarding the following scene:

I have a brick sprite to use as building block for platforms of different size (in this example 4). This approach causes the following issues:

  • The player slightly “hobbles” when moving over the seams of two connection blocks (colliders)
  • The scene uses much more sprites and colliders then necessary

Does anybody know how to handle this correctly, i.e.

  • Should I draw different sprites for multiple sized platforms (imho not preferred…)?
  • Should I create prefabs build with multiple sprites but using only one collider?
  • Is it somehow possible to scale a sprite texture and use only one gameobject (mainTextureScale does not work with SpriteRenderer)?
  • Is it possible to mix sprite objects with regular textured ones?

Any help would be appreciated :slight_smile:

You can tile a texture in one object with the Tiled Sprite now: Unity Asset Store - The Best Assets for Game Making

That’s the way I’d do it. Or you could use regular 3D planes with a custom material as well, but you’d be wasting materials and growing your draw calls. The Tiled Sprite also works with atlases via a regular Sprite. The other approach doesn’t as far as I know.