namespace Zenject { // Derive from this class, add [InitializeOnLoad], and then call Install // in a static constructor to add some editor time bindings // For example: // // [InitializeOnLoad] // public class FooInstaller : EditorStaticInstaller // { // static FooInstaller() // { // Install(); // } // // public override void InstallBindings() // { // Container.BindInstance("hello world"); // } // } // public abstract class EditorStaticInstaller : InstallerBase where T : EditorStaticInstaller { public static void Install() { StaticContext.Container.Instantiate().InstallBindings(); } } }