예제 #1
0
        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);
        }
예제 #2
0
 public static string GetModifierFilePath(ModifierLandformCategory LandformCategory, string LandformName, string fileExtension)
 {
     return(LBSetup.modifiersFolder + "/" + LandformCategory.ToString() + "/" + LandformName.ToString() + "." + fileExtension);
 }