public void ApplyCustomUI(ITerrainLayerCustomUI customUI, Terrain terrain)
 {
     m_CustomUI        = customUI;
     m_CustomUITerrain = terrain;
 }
Beispiel #2
0
 internal void SetCustomUI(ITerrainLayerCustomUI customUI, Terrain terrain)
 {
     m_CustomUI        = customUI;
     m_CustomUITerrain = terrain;
 }
Beispiel #3
0
        public static void ShowTerrainLayerGUI(Terrain terrain, TerrainLayer terrainLayer, ref Editor terrainLayerEditor, ITerrainLayerCustomUI customGUI)
        {
            Editor.DrawFoldoutInspector(terrainLayer, ref terrainLayerEditor);

            if (terrainLayerEditor != null)
            {
                var terrainLayerInspector = terrainLayerEditor as TerrainLayerInspector;
                if (customGUI != null)
                {
                    terrainLayerInspector.ApplyCustomUI(customGUI, terrain);
                }
                else
                {
                    terrainLayerInspector.ApplyCustomUI(null, null);
                }
            }
        }