I want to access the color property of both a UI image or TMP_Text object. The classes are unrelated so there is no interface i can use. Is it possible to do something along the lines of:
Yes but this isn’t just an overload, its a copy paste of the entire method. Remember, TMP_Text and Image have no common interface for accessing color, they just so happen to have a property of the same name.
The function is just to ‘pulse’ an image or some text via a coroutine, nothing complex. It just felt like there would be an elegant solution but sounds like not.