Zenject
Zenject copied to clipboard
How To Send Parameter to factory function dynamically?
Hi.
I need to make a factory function to get a parameter and return value from a dictionary.
i know there is "WithId" feature that accepts strings but it's predefined in the container. I need to send a string as a key of dictionary and return GameObject type as the key of the dictionary.
is it possible or there is a solution around it?
generally, I'm looking for a more flexible factory and pool functions