Q:

Unity3D Repeating pattern applied 2D Mesh with collider

What is the proper way of creating 2D Mesh with collider?
All I want to do is create some shapes (not very simple like triangle or rectangle) like slide or rounded rectangle. And I want to define a repeating pattern inside it to fill and reduce memory. Lastly I will need a collider around my shape.

A:

Create the entire thing in a modeling program like Blender... same as you would for a 3D model, but all of your shapes/meshes will be flat.  Create your textures the same also... all in your modeling program.  Then save your file (.blend for Blender) to your Unity assets folder.  Now switch back to Unity and drag/drop the prefab that is created form the .blend file on to your scene.  Change the renderer if you want (I use Mobile Unlit, or Unlit Transparent most of the time).
Works just like a normal 2D sprite now... but the texture will repeat and you can make whatever shape you want in your modeling program.
For the collider, you can add any type of collider you want.  If your shape isn't standard, you'll probably want an Edge Collider 2D or a Polygon Collider 2D.

