Zenject icon indicating copy to clipboard operation
Zenject copied to clipboard

How To Send Parameter to factory function dynamically?

Open virtouso opened this issue 4 years ago • 0 comments

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

virtouso avatar Nov 26 '21 20:11 virtouso