• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Code String Representation of a struct

-=THOR=-

Grizzled Veteran
Sep 20, 2011
1,050
50
Hi,

How do I get the string representation of a struct, like it is done for the ini variables? I mean, if I want to log a complex struct, is there a method that can can translate a struct variable into a string, like:

str = GetStringRepresentation(Engine.StatColorMappings);

str value:
(StatName="Streaming fudge factor",ColorMap=((In=0.000000,Out=(B=0,G=255,R=0,A=0)),(In=1.000000,Out=(B=0,G=255,R=0,A=0)),(In=2.500000,Out=(B=0,G=255,R=255,A=0)),(In=5.000000,Out=(B=0,G=0,R=255,A=0)),(In=10.000000,Out=(B=0,G=0,R=255,A=0))),DisableBlend=False)