Values stored inside variables becomes corrupted after creating an FBufferArchive variable (FBufferVar), setting FBufferVar.ArForceByteSwapping = true; and then storing the original value in FBufferVar
float foo = 1234.56789e+20; FBufferArchive ar; UE_LOG( LogTemp, Warning, TEXT( "Original value: %g" ), foo ); ar << foo; UE_LOG( LogTemp, Warning, TEXT( "Before Serialization: %g" ), foo ); ar.ArForceByteSwapping = true; ar << foo; UE_LOG( LogTemp, Warning, TEXT( "After Serialization: %g" ), foo );
Result:
Original & Before serialization values are equal however the value of foo printed to the output log changes after setting  ar.ArForceByteSwapping = true;
Head over to the existing Questions & Answers thread and let us know what's up.
| 0 | 
| Component | UE - Foundation - Core | 
|---|---|
| Affects Versions | 4.10 | 
| Created | Nov 16, 2015 | 
|---|---|
| Resolved | Aug 18, 2021 | 
| Updated | Aug 18, 2021 |