How to inject several instance of the same class? #538
Unanswered
shaked-okami
asked this question in
Q&A
Replies: 1 comment
-
|
If you have: you can do or
etc. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a game where i have several instances of a scriptable object.
Since those scriptable objects are all of the same type, how could i distinguish then when injecting them?
I remember that zenject used to have a with id parameter that offer that functionality, however i don't see it in VContainer.
I could just create empty classes that would inherit form the scriptable object so far, but i don't really like that solution.
Beta Was this translation helpful? Give feedback.
All reactions