Closed GMassta closed 11 months ago
Hi! In Zenject i can make something like this:
public class Factory { private readonly IInstantiator _builder; public Factory(IInstantiator builder) { _builder = builder; } public IElement Create<T>(param1, param2...) where T: IElement => _builder.Instantiate<T>(new object[] { param1, param2... }); }
Can i do it on VContainer and how? Thanks!
I've rephrase my question: how can I get the builder inside my registered classes. This might be useful if I want to divide my builder thematically.
Hi! In Zenject i can make something like this:
Can i do it on VContainer and how? Thanks!
I've rephrase my question: how can I get the builder inside my registered classes. This might be useful if I want to divide my builder thematically.