Is there any way to track what scripts changed a variable’s value? I don’t like always using setters for my variables, and I would like to track what scripts changed my variables on another script
Hello there,
Usually, if your variable can be accessed/edited from other scripts, it’s a good idea to have a setter somewhere. That way you can place a debug log in it, and when it fires you can inspect it in the console to see where it got called from.
Sorry I don’t have a better answer for you… Setters can be a pain, but they’re very useful for this kind of case.
I hope that helps!
Cheers,
~LegendBacon