2022.1.b07
URP
In our game (2d platformer) we have water which can wave and be slightly interacted with. To solve this we are currently using sprite shapes and dynamically repositioning the vertices each frame. This causes high memory leaks as the SpriteShapeController performs some rebuild on each render.
Tbh, I think sprite shapes are way too advanced for what we really need. But at the time when this was implemented I simply could not find anything that felt more suitable. Now, given the memory issues, I am willing to reconsider.
What would be ideal is some kind of 2D Mesh in which I could manually update the vertices each frame. (If not by code then at least in a shader) I’ve considered rolling my own using regular 3D Mesh, but I’m not really sure how to make that interact well with other 2D features such as my sprite materials, lights etc.
Any suggestions?