Does Property Editor support UStruct Polymorphism?

Hello–

I was wondering if I could create a group of UStructs that inherit from a core parent, and then let my object pick which UStruct it is referencing using the Property Editor.

I am able to mimic this using UClass, but I worry there is too much overhead vs a UStruct

Any help or guidance is appreciated here :slight_smile:

J

I’m also super interested in this for representing simple message objects and using them in Blueprints. UStructs are great since they are lightweight, don’t need to be allocated on the heap, can be passed around by value, and, most importantly for my purposes, automatically generate make/break functions in Blueprints (manually creating function libraries and make/break functions for each message type would be a huge hassle). The problem is I need them to derive from a common message class for the message broadcasting functions in Blueprints.

Trying to expose the parent UStruct and then derive from it with an exposed child struct causes a “missing ‘{’ in ‘struct’” error in the USTRUCT macro in the child struct.