ResourceTypeFormat Method (String) |
Namespace: KSPDev.GUIUtils.TypeFormatters
public static string Format( string resourceName )
Debug.Log(ResourceType.Format(StockResourceNames.ElectricCharge)); // Prints: "Resource is: Electric Charge" Debug.Log(ResourceType.Format(PartResourceLibrary.ElectricityHashcode)); // Prints: "Resource is: Electric Charge"