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!