public static Texture2D GetLandformHeightmapImage(ModifierLandformCategory LandformCategory, string LandformName) { Texture2D heightmapImage = null; string modifierLandformFilePath = baseModifierPath + "/" + LandformCategory.ToString() + "/" + LandformName.ToString() + ".png"; heightmapImage = (Texture2D)AssetDatabase.LoadAssetAtPath(modifierLandformFilePath, typeof(Texture2D)); return(heightmapImage); }
public static string GetModifierFilePath(ModifierLandformCategory LandformCategory, string LandformName, string fileExtension) { return(LBSetup.modifiersFolder + "/" + LandformCategory.ToString() + "/" + LandformName.ToString() + "." + fileExtension); }