Mathijs-Bakker / Extenject

Dependency Injection Framework for Unity Game Engine
MIT License
512 stars 95 forks source link

Unable to inject into MonoBehaviour from SubContainer #56

Open JChudinov opened 1 year ago

JChudinov commented 1 year ago

Describe the bug While trying to bind MonoBehaviour in SubContainer (FromSubContainerResolve ByMethod) I cant inject anything (both field and method injection failed).

To Reproduce

  1. Create Installer and SubContainer, register in project/scene context
  2. Create MonoBehaviour class and bind it in SubContainer as FromInstance
  3. Bind any other stuff in SubContainer and try to inject it it MonoBehaviour class.
  4. Validate and play

Expected behavior Scene validation succeeded

Extenject and Unity info (please complete the following information):

Gist with files to reproduce https://gist.github.com/JChudinov/cc4867ef1aef3fb7597d3831a66bb202