public static void EPainter_TerrainMaterialAddCallback(TerrainMaterial mat, int matIndex) { if (!mat.isObject()) { return; } ((TerrainEditor)"ETerrainEditor").addMaterial(mat.getInternalName()); ((TerrainPainter)"TerrainPainter").setup(matIndex); }
public static void EPainter_TerrainMaterialUpdateCallback(TerrainMaterial mat, int matIndex) { if (matIndex == -1 || !mat.isObject()) { return; } // Update the material and the UI. ((TerrainEditor)"ETerrainEditor").updateMaterial((uint)matIndex, mat.getInternalName()); ((TerrainPainter)"TerrainPainter").setup(matIndex); }