Files
unity-iso-tools/Assets/IsoTools/Tiled/Internal/Editor/TiledMapLayerEditor.cs
2016-02-07 04:40:36 +06:00

23 lines
509 B
C#

using UnityEngine;
using UnityEditor;
using IsoTools.Tiled;
using IsoTools.Internal;
namespace IsoTools.Tiled.Internal {
[CustomEditor(typeof(TiledMapLayer)), CanEditMultipleObjects]
class TiledMapLayerEditor : Editor {
TiledMapLayer _layer = null;
void OnEnable() {
_layer = target as TiledMapLayer;
}
public override void OnInspectorGUI() {
DrawDefaultInspector();
if ( _layer && _layer.Properties != null ) {
_layer.Properties.OnInspectorGUI("Layer properties");
}
}
}
}