Repository navigation
Version 3.3.0
Summary
- You can now pass type to RegisterType using UClass pointer
- Fixed some include issues (#5)
RegisterType improvements
You can now call RegisterType with following arguments:
Builder.RegisterType<UMyImpl>().As(UMyInterface::StaticClass());
Builder.RegisterType(UMyImpl::StaticClass()).As(UMyInterface::StaticClass());
Builder.RegisterType(UMyImpl::StaticClass()).As<IMyInterface>();This opens possibility to create project specific editable configuration assets.
For example, you may create a struct containing reference to some type. Then you put those structs in array inside some DataAsset. During runtime you may fetch info from such DataAsset and register types into the container.