UE 4.5.1 Saving Loading Custom USTRUCT()

ErraOfWar
Tue, 04 Nov 2014 06:37:23 +0000
Editor Scripting

I am currently making a login/registering system for my game and i am following along with Rama’s “Custom Save Systems, Write Any Data to Compressed Binary Files”. I am was wondering if it was possible and how if i can save my own custom UStruct to a compressed Binary File.

So far i have gotten most of the logic down, but i am getting an error here:

void AMyGameMode::SaveLoadData(FArchive& Ar, TArray<FPlayerRegisterInfo>& SaveDataArray)
{
	Ar << SaveDataArray;
}

“binary ‘<<’ : no operator found which takes a right-hand operand of type ‘FPlayerRegisterInfo’ (or there is no acceptable conversion)”

I’m good with logic, but i’m still trying to get used to UE’s variable conversions. Anyone know any solutions?

4 posts - 3 participants