mirror of
https://github.com/BlackMATov/unity-iso-tools.git
synced 2025-12-15 01:12:05 +07:00
36 lines
895 B
C#
36 lines
895 B
C#
using UnityEngine;
|
|
using UnityEditor;
|
|
using IsoTools.Tiled;
|
|
using IsoTools.Internal;
|
|
|
|
namespace IsoTools.Tiled.Internal {
|
|
[CustomEditor(typeof(TiledMapTile)), CanEditMultipleObjects]
|
|
class TiledMapTileEditor : Editor {
|
|
TiledMapTile _tile = null;
|
|
|
|
// ------------------------------------------------------------------------
|
|
//
|
|
// Functions
|
|
//
|
|
// ------------------------------------------------------------------------
|
|
|
|
// ------------------------------------------------------------------------
|
|
//
|
|
// Messages
|
|
//
|
|
// ------------------------------------------------------------------------
|
|
|
|
void OnEnable() {
|
|
_tile = target as TiledMapTile;
|
|
}
|
|
|
|
public override void OnInspectorGUI() {
|
|
DrawDefaultInspector();
|
|
if ( _tile && _tile.Properties != null ) {
|
|
GUILayout.Label(string.Format(
|
|
"Property count: {0}", _tile.Properties.Count));
|
|
}
|
|
}
|
|
}
|
|
}
|