Minimal dependency injection framework for Unity
TypeInfoCache
not searching for injectable fields/properties/methods in class hierarchy, see https://github.com/gustavopsantos/Reflex/issues/51
Make sure to read Reflex 8 Injection Strategy AND Reflex 8 Execution Order when upgrading from v7 to v8
var foo = gameObject.scene.GetSceneContainer().Resolve<IFoo>();
Decoration support was inspired by https://github.com/khellang/Scrutor
ReflexDebuggerWindow
refresh hooks
SceneManager.sceneLoaded
SceneManager.sceneUnloaded
ReflexSceneManager::LoadScene
APIReflexSceneManager::PreInstallScene
for pre installing scenes (Now it works for both scene loading kinds, legacy and addressables)ReflexSceneManager.LoadScene("Session", LoadSceneMode.Single, descriptor => descriptor.AddInstance(42));
var scene = SceneManager.LoadScene("Session", new LoadSceneParameters(LoadSceneMode.Single));
ReflexSceneManager.PreInstallScene(scene, descriptor => descriptor.AddInstance(42));
Addressables.LoadSceneAsync("Session", activateOnLoad: false).Completed += handle =>
{
ReflexSceneManager.PreInstallScene(handle.Result.Scene, descriptor => descriptor.AddInstance(42));
handle.Result.ActivateAsync();
};