I have a hierarchy of USTRUCTs wherein GestureBase is the parent and CircleGesture,TapGesture,SwipeGesture are all children. All the structs are declared USTRUCT(BlueprintType). Is downcasting from GestureBase to the derived structs supported, and if so, what do I need to implement to enable it? I would prefer to avoid having to convert over to UCLASS if at all possible.
Ideally what I’d like to do is be able to switch on the Type enum like in the picture below, and then cast the GestureBase class (the Gesture parameter on the NewGestureDelegate) to the appropriate derived type so that I don’t need dedicated Delegates for each subclass and can simply ‘listen in’ to all new gestures, or all stopped gesture events, etc.