- Home /
The question is answered, right answer was accepted
[SOLVED] Modular Geometry Cube Size
So, I am going to be designing a level using modular geometry with the cube object in unity. My question is, how would I go about making the cube 256x256 for easy texturing later on in the process? Many thanks!
Answer by MikeNewall · May 30, 2014 at 02:19 AM
The size of the cube doesn't matter, it's the Uv's that determine how a texture is applied to its surface. Uv's are laid out in a normalized space (0 to 1) The bottom left corner being {0,0} and the top right being {1,1}.
The faces of the cube are already laid out correctly so a power of 2 texture (256 x 256) will fit the face perfectly.
if you want the texture to repeat you set the main texture scale of the material http://docs.unity3d.com/ScriptReference/Material-mainTextureScale.html
The textures wrap mode must be set to repeat in the import settings for it to tile.
Follow this Question
Related Questions
Building my own benchmarking program 1 Answer
Importing Levels for 3D Program to Unity? 1 Answer
How to use modular geometry 1 Answer