How to make each side of a 3D cube have the same image?

I need to make each face of a 3D cube have the same image like this (in unity)

can anyone help me?

In case you try to apply these textures to Unity’s built-in cube the textures will be in unexpected orientations on some faces.

If you create a simple cube in Blender and import that, it will have a different UV layout that may be more suitable.

Either way, you may have to rotate the cube from its original position if it’s most important that the 4 sides of the cube (not: top, bottom faces) all have the same left-to-right and top-to-bottom orientation of the texture. Just look at the cube and check which four sides align in this scheme and rotate the cube so that these 4 sides are oriented “to the side” if you know what I mean.

You can then prefab that cube or put it as a child in its rotated version to a prefab object that has default values for its transform so it’s easier to work with since then you can assume the cube object to be in default rotation (0,0,0).

For example:

  • CubePrefab (transform rotation (0,0,0))
    • Actual Cube Mesh (transform rotation (-90,0,90))

Since a cube is such a simple object you can also get a script that creates a cube mesh by code, then change the UV coordinates in such a way that each face shows the texture in the orientation that you want.

Look into authoring UVs in your modelling program of choice (eg. Blender).
UVing a cube like this is possibly one of the simplest modelling jobs you can do and any beginner UVing tutorial will give you the knowledge to do it.