I want to change material used by a sprite to the other one during run time.
While searching for the solution I have came across this topic :
http://2dtoolkit.com/forum/index.php?topic=356.0It basically has a bit of work around but it doesn't cover the basic feature of the tool.
Situation :
I have sprite collection with couple of materials on them. Meaning, that some sprite uses material_A and others uses material_B etc..
The above material settings are done in the sprite collection editor.
Now during the run time I want to change the material of specific sprite to the one I want , causing them to become local and just modify it without affecting the other sprites.
The above link solution does work for changing the run time case, but that causes the other usual assignment of the different materials by the editor not working anymore for the existing sprite prefabs.
This , ofcourse is because, the work around code is ignoring the change and only allocates one when a sprite is being created. So for the ones that are already created, it can't change.
Is there any other updated workaround for this issue?
Thanks.
