2

The Zenject documentation shows adding a component to a GameObject looking like:

enter image description here

However mine looks like:

enter image description here

How come mine appears to add a Collection of GameObjects rather than a single GameObject? I also show an Identifier whereas the example doesn't have that and I'm not sure why.

Ben
  • 60,438
  • 111
  • 314
  • 488

1 Answers1

2

This is because the images in the documentation are out of date. The Component property was changed to a list, so if you add your component to the list it will function the same as the previous Component property. As for the Identifier, that is optional and can be ignored if you are not interested in using it.

Steve Vermeulen
  • 1,406
  • 1
  • 19
  • 25