- Home /
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:
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"...
Answer by Mannis · May 20, 2013 at 10:06 PM
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.
I very naively thought Unity provided a feature to remap the UV...
That's not true. Unity allows you to create cubes with the UI and then run a script to provide UV coordinates.
Answer by AlucardJay · May 18, 2013 at 03:02 AM
Check my answer here : http://answers.unity3d.com/questions/306959/uv-mapping.html
that was not our question alucardj answered your question, the answer to your new question is all over unity answers also. you tube has a tone of videos on how to map textures in lightwave maya, blender , and dozens of others
Answer by jethrogillgren · May 31, 2018 at 08:15 AM
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.