❔ Zenject (Unity) doesn't fire when i do new()
Hey,
I have a class which looks like this
and
_b
is null for some reason?10 Replies
B is binded, thats for sure
Idk what Zenject is but everything here looks consistent
You're calling the constructor, so only the constructor is being run. There's no magic here.
nope, zenject should call
Construct
thats why there is the [Inject]
thingyDoes it do IL weaving or something?
no clue tbh
ah, yeah, looks like it is
i guess i cant use [Inject] if i'm constructing classes on my own
it should either be a MonoBehaviour
or a class created using Zenject
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.