ShowTerrainSplatEditor() static private method

static private ShowTerrainSplatEditor ( string title, string button, Terrain terrain, int index ) : void
title string
button string
terrain UnityEngine.Terrain
index int
return void
        internal static void EditSplat(MenuCommand item)
        {
            Terrain context = (Terrain)item.context;
            string  title   = "Edit Terrain Texture";

            switch (context.materialType)
            {
            case Terrain.MaterialType.BuiltInStandard:
                title = title + " (Standard)";
                break;

            case Terrain.MaterialType.BuiltInLegacyDiffuse:
                title = title + " (Diffuse)";
                break;

            case Terrain.MaterialType.BuiltInLegacySpecular:
                title = title + " (Specular)";
                break;

            case Terrain.MaterialType.Custom:
                title = title + " (Custom)";
                break;
            }
            TerrainSplatEditor.ShowTerrainSplatEditor(title, "Apply", (Terrain)item.context, item.userData);
        }
 internal static void AddSplat(MenuCommand item)
 {
     TerrainSplatEditor.ShowTerrainSplatEditor("Add Terrain Texture", "Add", (Terrain)item.context, -1);
 }