Files
tianrunCRM/Assets/CoolapeFrame/Editor/Inspectors/CLCellLuaInspector.cs
2020-07-04 14:41:25 +08:00

26 lines
541 B
C#

using UnityEngine;
using System.Collections;
using UnityEditor;
using System.IO;
using Coolape;
//页面视图
[CustomEditor (typeof(CLCellLua), true)]
public class CLCellLuaInspector : CLBehaviour4LuaInspector
{
CLCellLua cell;
public override void OnInspectorGUI ()
{
cell = target as CLCellLua;
base.OnInspectorGUI ();
if (GUILayout.Button ("Reset Atlas & Font")) {
if (cell.isNeedResetAtlase) {
// CLUIInit.self.init ();
CLUIUtl.resetAtlasAndFont (cell.transform, false);
// CLUIInit.self.clean ();
}
}
}
}