UUserWidget Serialize bug

Hi

I am trying to serialize a user widget, however every single time I end up in at MemoryArchive line 56:


virtual FArchive& operator<<( class UObject*& Res ) override

{

// Not supported through this archive

check(0);

return this;

}


Where my Res is some mambojambo material from /Engine/MapeTemplates/Materials


here is my h:


UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = “Test Widget”)

UWidgetComponent
TestWidget;


cpp:


TestWidget = CreateDefaultSubobject(TEXT(“TestWidget”));

TestWidget->SetupAttachment(RootComponent);



if (TestWidget->GetUserWidgetObject())

{

FBufferArchive ToBinary;

TestWidget->GetUserWidgetObject()->Serialize(ToBinary);

}

What I am trying to achieve is to serialize widget, send binary data over TCP and read it back to widget. However as you may know at very first thing Unreal flips. Any ideas ? Cheers!

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks