Hi,
i have a basic cube and I am trying to make a dice from it…
How can I make each side or “face” of this cube show a different texture to make it into a dice?
Right now it just repeats the square texture onto every side…
Edit: replaced basic square with correct word CUBE.
you would not be able to do this with a cube inside unity as the uv for each side is on top of each other, you would need to move the uv into a different position.
best advice i can give is to download blender (its free) watch a couple tutorials on it, make a simple cube maybe round a few edges of to get the nice dice look, then unwrap the uv into a sort of flat packed box shape make a texture and import back to unity.
infact this is so simple to do if you want me to ill make you a simple dice object
“Basic square”? You mean cube, I guess. You can’t with the Unity Cube primitive.
You could use 6 planes (but that’s overkill, since each Unity Plane already has 200 triangles…) and apply 6 different materials.
Your options are to
- model a simple plane, import that, copy 6 times, make a cube from it using transformations, apply 6 different materials to it.
- model a cube with the 6 sides as separate objects and with 0/1 UV mapping, import that, again 6 different materials
- model a cube, and texture it using a texture atlas, so you only have one material and one texture (but different UV mappings for each side). This is the performance optimized variant.
- model a cube, and also texture it in the modeling system to look like a die. This should have the same performance.
Old question, but here is a solution that does not involve a modeling program using Unity’s built-in cube:
http://answers.unity3d.com/questions/542787/change-texture-of-cube-sides.html