Hello,
I’m making my own gui library using mvc pattern, since each object I’m making (a button for example) has its own data/logic and its own OnGui function, I was wondering if there’s a way to set a scale matrix on a script so that each OnGui function use that matrix or do I need to set this scale matrix on the beginning of each OnGui function?
I’ve tried setting this scale matrix on a script and I made it execute as the first script by setting its priority on Project Settings-> Script execution order,
the scale matrix is successfully applied however it works only for objects being drawn in the same script, objects being drawn from other OnGui use the default matrix,
to make them use that matrix I need to reapply it in the beginning of the OnGui.
any better workaround?