예제 #1
0
        public static void EPainter_TerrainMaterialAddCallback(TerrainMaterial mat, int matIndex)
        {
            if (!mat.isObject())
            {
                return;
            }

            ((TerrainEditor)"ETerrainEditor").addMaterial(mat.getInternalName());
            ((TerrainPainter)"TerrainPainter").setup(matIndex);
        }
예제 #2
0
        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);
        }