Skip to main content

FactoryAsync<TParam1, TParam2, TParam3, TConcrete, TInterface>

An abstract class in Alta.VContainerLayer.Runtime, the global namespace.

Async prefab factory taking three parameters, passed to the component's FactoryConstruct.

Constructors​

MemberWhat it is
protected FactoryAsync()Creates a FactoryAsync with default values.

Methods​

MemberWhat it is
async Task<TInterface> Create(TParam1 param1, TParam2 param2, TParam3 param3)Loads and instantiates the prefab with injection, calls FactoryConstruct with the three parameters, tracks it for disposal and returns it.