Reply To: how to work with zenject?

Forums 💬 NodeCanvas ⚙️ Support how to work with zenject? Reply To: how to work with zenject?

#18180
rasooli.behnam
Participant

    There is no way you can inject it, but you can add the DiContainer to the graph’s blackboard inside your Zenject installer and then retrieve it inside your NodeCanvas custom code. From there you can resolve your types directly from the DiContainer. For instance, I’m getting a reference to the DiContainer inside my custom state.