Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to inject into MonoBehaviour from SubContainer #56

Open
JChudinov opened this issue Oct 14, 2022 · 0 comments
Open

Unable to inject into MonoBehaviour from SubContainer #56

JChudinov opened this issue Oct 14, 2022 · 0 comments

Comments

@JChudinov
Copy link

JChudinov commented Oct 14, 2022

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):

  • Zenject version: reproduced on 9.2.0, 9.2.1 and 9.3.0
  • Unity version: 2020.3.15f2
  • Project's scripting backend IL2CPP

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant