P
P
Pavel2018-03-12 21:05:59
Unity
Pavel, 2018-03-12 21:05:59

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 question

Ask a Question

731 491 924 answers to any question