OnValidate For Other Components?
Is there a way to check in one script if OnValidate has been called in another? I have a script that needs to update whenever a variable in any of four other components is changed (as of right now, though this number could grow later in development), including the Transform.
I've tried solving this by implementing custom inheritance classes with public OnValidate functions but a) this seems to be highly repetitive code, which I try to avaoid, and b) there is no way to inherit from Transform and Monobehavior simultaneously, and so I can't create a "custom" Transform to fit my project requirements.
I'd also like to avoid doing a check every Update, as there would be many variables to check in many scripts, and since this all needs to be done in Edit mode throwing the [ExecuteInEditMode] modifier to the script checking these OnValidates seems very performance heavy. I'd be grateful to anyone who knows of a solution!