Hello!
I am working on a custom sprite renderer as I need to matrix distort the mesh and play with advanced shader things. (As of Unity 2019.2.9f1, I couldn’t find how to do that with the provided sprite renderer)
Everything works just fine but I have some optimization woes. I am using atlases, but because my sprite needs a texture in edition mode (for obvious reasons), I use the texture that the sprite provides (mainly because I don’t know if the atlas is built when I use the sprites) and in runtime my sprite’s mesh renderer and material and texture is loaded with the sprite’s texture. Then I can immediately switch to the atlas’s texture.
What I’d like to do is to never save the material, just omit it from serialization, I’m dynamically creating it.
Maybe its impossible, so anyone got any luck with a custom sprite solution that heavily relies on Unity’s?