Exposing templated containers to blueprints

Hello,

I have some containers I wish to expose to blueprints, in the same way, TArray, and in recent updates, TSet and TMap have been.

  1. Where should I look (in source code, configuration files) to add my custom container to the drop-down next to variables?
  2. Where (which source files) in the run-time is the drop-down created?
  3. How do I make a template container ‘compatible’ with the blueprint UI? What must be done so a user can select the blueprint’s element type?

I know this is pretty advanced though it would be great to know how you did it with the previous updates. I look through Unreal’s code though some general pointer’s would be very useful and appriciated.

Cheers,
Univise

If I am not mistaken, containers work as types in BP because of the reflection magic done by UBT, not UE itself. Not sure if it would be possible to have the same type of functionality you get for supported containers without changing a bunch of other stuff in other tools (I also guess if it was simple and clean to do it would already be done…).