Would it be safe to enable the use of the OnStart() method in My Extensions?
I'm hoping to move my new rewritten extensions to my main My Extensions script, but it requires using the OnStart() hook to set it up. It doesn't seem to be invoked when I test it within regular scripts, I would have to work around it and invoke it manually.
Any particular reason why the OnStart() hook isn't used in My Extensions? Could that be enabled?
I guess the hooks are only really used in the context of #loading them in. Any chance that could be revisited and allow #loading in My Extensions?
Comments
-
I'd second this request.
My current workaround is to enable
Always use a fresh process between executionsand then I have this in my extensionspublic static class StaticConstructorsExtensions { [System.Runtime.CompilerServices.ModuleInitializer] internal static void ModuleInitializer() { // Code I always want to run goes here. } }