Skip to content

Version 3.3.0

Choose a tag to compare

@druhasu druhasu released this 29 Mar 09:52
· 11 commits to master since this release

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.