How to map texture in a cube?

Let’s say I want to map a dice texture in a cube in Unity. But it’s not a regular texture, it’s like this:

alt text

That is, it has one part for each cube face and it has parts that shouldn’t be mapped - the folds.

How can one create a UV mapping to do this?

What I’m trying to ask is how do I map the texture when it is not “well behaved”…

Check my answer here : UV mapping - Unity Answers

Unity does not have built-in 3D modeling tools, you will need to import your meshes from somewhere else (like Blender, a free 3D modeling tool) with the proper UV map already in place. You can apply textures and materials in unity, but it is done automatically and cannot be edited in the way you are seeking without relying on scripting.

In 2018, this can be done using Unity’s free ProBuilder add-on.

This example shows how to do that with a cube, and other shapes.