How do you get the units for the current project in c++?

I need to scale data coming from a library to the Units set to the current project you use the files.

Any variable in the Engine to get it?

Somebody?

In case somebody is looking for the answer. Maybe you can see the unit you are looking for with this.

This way you can get the scale value to adapt your fixed scale to the settings, for example.

// Get scale value from settings
FString ValueReceived;
if (GConfig->GetString(
   TEXT("/Script/UnrealEd.EditorProjectAppearanceSettings"),
   TEXT("DistanceUnits"),
   ValueReceived,
   GEditorIni
))
{
	TOptional<EUnit> currentUnit = FUnitConversion::UnitFromString(*ValueReceived);
	 if (!currentUnit.IsSet())
		currentUnit = EUnit::Centimeters;
			
	 switch (currentUnit.GetValue())
	 {
			case EUnit::Micrometers:
				distanceUnitScale = 1000000.0;
				break;
			case EUnit::Millimeters:
				distanceUnitScale = 1000.0;
				break;
			case EUnit::Centimeters:
				distanceUnitScale = 100.0;
				break;
			case EUnit::Meters:
				distanceUnitScale = 1.0;
				break;
			case EUnit::Kilometers:
				distanceUnitScale = 0.001;
				break;
			default:
				distanceUnitScale = 100.0;
	 }

}