public void ApplyCustomUI(ITerrainLayerCustomUI customUI, Terrain terrain) { m_CustomUI = customUI; m_CustomUITerrain = terrain; }
internal void SetCustomUI(ITerrainLayerCustomUI customUI, Terrain terrain) { m_CustomUI = customUI; m_CustomUITerrain = terrain; }
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); } } }