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