How to create sprites, programatically without using prefabs?
- by DemonSOCKET
I have different types of images for different sprites. and i am not certain that how much different sprites(images) i will have to show. So, i gotta create the sprites and apply textures programatically at runtime.
Now, I defiantly can't use prefabs because it will restrict me with the number of different sprites i can use. and also, changing texture on one sprite prefab instance in game, will change all the sprites prefab, that's not acceptable in my case.
Is there a way i can create sprites without having to create static prefab ?
where ever i looked for the solution every time i got the same answer "create a prefab", which is what can not be done in my case.