|
Ok, I need to create a script that creates a new material that assigns itself an image from my resources folder as a texture. So far i gather that i need to:
make a new material, name it procedurally, but im having trouble implementing resources.load to assign the image. Then i need to instantiate a prefab that has one of these procedurally created materials attached. Lots of trouble with this:
I just dont know how to assign a material with
Any pointers would help, im stuck!
(comments are locked)
|

Just to be clear - are you talking about doing it in play mode? Or do you want to create these materials in your project for the long haul?
i want to load and assign them while in play mode. So each play new assets will be created.