Will the UPROPERTY TArray below prevent garbage collection of its elements? Or do I need a USTRUCT() for UPROPERTY members to work correctly?
The problem with USTRUCT() is that I cannot create them with template parameters.
template<typename T>
struct FMenuItemList
{
UPROPERTY(VisibleAnywhere, Category = "Menu")
TArray<T> ItemList;
int32 CurrentItem;
};