all-iver / shapes2d

Shapes2D for Unity3D - Make simple art assets quickly in Unity
http://sub-c.org/Shapes2D/documentation/
MIT License
157 stars 28 forks source link

Constant material refresh #28

Open Wokarol opened 6 months ago

Wokarol commented 6 months ago

I use the asset, and while it generally works great. But generates a lot of mess in git.

In some cases, running a scene can generate countless material and ID changes. image

And using the asset for prefabs means that every one of them is full of overrides image

It's a really nice asset, but that problem means it's basically not viable for any serious project. Is there a way to solve it, perhaps by using ISerializationCallbackReceiver and configuring material on deserialization and returning to default or null one when on serialization.