- Home /
How to make a minecraft like texture system!
I have a procedurally generated cube and i would like to add a uv map similar to what minecraft has. I would like to make single texture for like 20 cubes and change them at runtime. Like dirt in minecraft when it turns into grass after a amount of time. How would i modify the uv's to a certain spot on the texture no matter what size it is? Please don't just give me a link to the unity script refrence saying look at this, cuse i don't explain it in a good way. Thanks !
The short answer is that you need to procedurally generate UVs that map the various surfaces of your mesh(es) to the appropriate areas of your texture(s).
This implies that you'll need a strong understanding of meshes and UV mapping, or a library that can abstract the process for you. It's not a simple task.
Answer by bodec · Apr 13, 2012 at 10:48 PM
for simplicty run a waitforseconds() script and swap out uvs. you will need to place this in a command that will allow the rest of your script to run with out waiting on the time to finish.
Your answer
Follow this Question
Related Questions
Assigning UV Map to model at runtime 0 Answers
Get a UV texture of a models surface 2 Answers
UV's are shrinking when zoomed out? 1 Answer