mirror of
https://github.com/BlackMATov/unity-iso-tools.git
synced 2025-12-15 01:12:05 +07:00
21 lines
462 B
C#
21 lines
462 B
C#
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
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");
|
|
}
|
|
}
|
|
}
|
|
}
|