Files
unity-iso-tools/Assets/IsoTools/Tiled/Internal/Editor/TiledMapTilesetEditor.cs
2016-02-07 04:21:56 +06:00

35 lines
889 B
C#

using UnityEngine;
using UnityEditor;
using IsoTools.Tiled;
using IsoTools.Internal;
namespace IsoTools.Tiled.Internal {
[CustomEditor(typeof(TiledMapTileset)), CanEditMultipleObjects]
class TiledMapTileEditor : Editor {
TiledMapTileset _tileset = null;
// ------------------------------------------------------------------------
//
// Functions
//
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
//
// Messages
//
// ------------------------------------------------------------------------
void OnEnable() {
_tileset = target as TiledMapTileset;
}
public override void OnInspectorGUI() {
DrawDefaultInspector();
if ( _tileset && _tileset.Properties != null ) {
_tileset.Properties.OnInspectorGUI("Tileset properties");
}
}
}
}