gustavopsantos / Reflex

Minimal dependency injection framework for Unity
MIT License
730 stars 51 forks source link

Can`t resolve dependencies from SceneInstaller if use ProjectInstaller too. #18

Closed Hafune closed 1 year ago

Hafune commented 1 year ago

Hi. If i use ProjectInstaller i catn`t resolve dependencies which was binding in SceneInstaller, i use method BindInstanceAs and try bind object from scene, from [SerializableField].

Hafune commented 1 year ago

p.s. In method GetInjectables - MonoInjectionMode.Recursive - GetComponentsInChildren need add argument includeInactive = true, because inactive children don't get dependencies when we use container.Instantiate()

image

gustavopsantos commented 1 year ago

Thanks @Hafune for spoting the issue. Its fixed and released at version 3.5.2