When trying to read a variable value through type name and the source is using a typedef for a primitive value the read fails.
typedef int INT_ALIAS; class MyWrapper { INT_ALIAS number = 1337; }
MyWrapper inst(); int number; PrintFormat("Read: %1 - number: %2", inst.Type().GetVariableValue(inst, 0, number), number);
SCRIPT : Read: 0 - number: 0
As soon as the source switches to no typedef it works
class MyWrapper { int number = 1337; }
SCRIPT : Read: 1 - number: 1337