Does anyone know if it’s possible to override an image component’s functions?
I’m trying to figure out a workaround for a bug in 2019 that breaks an image component if you try to change it in script. Basically
Image.sprite = newSprite;
Makes
Image.color = Color.Black;
Do nothing.
I’ve submitted the bug (https://issuetracker.unity3d.com/issues/image-component-not-responsive-to-color-property-change-when-source-image-property-is-changed-via-script),
but am finding it really hard to work around, and it destroys some of the core features of my game. So I was wondering if there is a way to hijack calls to image.color (set) so I could clear and reassign the sprite back to itself after any color change.
Yes, I could create a separate monotype to do this and add it to every image, but I’d like a solution that’s easier to clean up.
Does anyone know if there is a way to do this?