Reply To: how to work with zenject?

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

#14293
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.

Attachments:
  1. Screen-Shot-2019-05-11-at-9.18.06-pm.png

  2. Screen-Shot-2019-05-11-at-9.20.55-pm.png