Is there an API to access all shared SpriteCollections at runtime?
We're trying to implement pallette swapping in our game, using a Shader. Like full 4-color pallette swaps, ala GameBoy Color. So, depending on the Level Loaded, I need to pass some parameters to the material for each spriteCollection.
If I try and set material properties on a specific sprite, the Material gets reverted back to the original, whenever UpdateMaterials() is called in tk2dSprite.
So, what I need to do is access the array of SharedMaterials that tk2d is using, and make my material.SetColor() calls there.
Is there an API to do that? I found ann array of AllCollections them in tk2dSpriteGuiUtility, but it's not accessible in my runtime code. I realize I could probably make a sprite, and change it's sprite collection manually, or link a prefab of each type of sprite, but both of those are pretty hacky.