- Home /
Adding texture to cube
Hi,
I am working on a 3D side-scroller metroidvania using a 2d dungeon asset from the asset store, my current workflow is:
Create new material and add sprite as albedo map
Create cube and add new material
Create prefab from cube
Rinse and repeat
As there are hundreds of tiles in the set I am looking for a way to automate all or part of this - any suggestions would be welcome.
Answer by FortisVenaliter · May 04, 2016 at 05:33 PM
All of that can be done in code, if you want to automate it. Best place to start would be the Unity Script Reference. Start with looking up the components you are using, and see what functions and properties it exposes, and start writing a script to manage the process. If you run into any trouble, post a new question with your code, and we'll be happy to help. You might also check out the Learn section of this site. It has a bunch of really great tutorials.
Your answer
Follow this Question
Related Questions
Particle System Z-ordering 0 Answers
Player Skins shop Menu 0 Answers
Fluid transition of sprint between tiles 1 Answer
"alphaHitTestMinimumThreshold" and "Sprite.Create" Issue 1 Answer