1
\$\begingroup\$

I am trying to use Zenject to automatically inject a reference to a component on a game object that I have in the scene, but can only seem to make the create new component on new object work. Should I be using a prefab installer and if so why can't I just drag the prefab into the prefab installer?

\$\endgroup\$
2
  • 1
    \$\begingroup\$ If you're trying to automatically inject a reference to a component on a game object into another object, maybe you should trying using ZenjectBinding? (see docs) \$\endgroup\$ Apr 25, 2019 at 6:25
  • \$\begingroup\$ Can you show us how you've configured the game object and the component you want to reference, including where each sits in your project/scene hierarchy? \$\endgroup\$
    – DMGregory
    Apr 25, 2019 at 16:29

0

You must log in to answer this question.

Browse other questions tagged .