private void AdjustEnumerationVariableValue(Gum.DataTypes.Variables.VariableSave variableSave, ElementSave element, ref string variableValue, ref string variableType)
{
if (variableSave.Type == "Gum.Managers.PositionUnitType" || variableSave.Type == "PositionUnitType")
{
string rootName = variableSave.GetRootName();
// convert from PositionUnitType to GeneralUnitType
GeneralUnitType convertedValue =
UnitConverter.ConvertToGeneralUnit((PositionUnitType)variableSave.Value);
variableValue = convertedValue.ToString();
variableType = "Gum.Converters.GeneralUnitType";
}
string prefix = variableType;
if (mTypeToQualifiedTypes.ContainsKey(prefix))
{
prefix = mTypeToQualifiedTypes[prefix];
}
else
{
ModifyVariableTypeForProperty(ref prefix, variableSave, element);
}
variableValue = prefix + "." + variableValue;
}