Answer the question
In order to leave comments, you need to log in
How to inject a dependency into a dynamically created GameObject?
I understand with Zenject. I realized that it "distributes" dependencies to all objects on the stage when the application starts (provided that they were already on the stage). But I can’t understand: is it possible to inject dependencies into dynamically created objects (which were created by some entity through the code var go = new GameObject(); for example)? Or does it make no sense at all and contradicts the ID? Help to understand, please.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question