static void RemoveCacheUIItems(UnityEditor.MenuCommand cmd) { //2017/11/27注释掉 // if (Application.isPlaying && Editor_ApplicationPause.IsUICacheEnableWhenPlaying == false) return; UICacheItemMark current = cmd.context as UICacheItemMark; if (current != null) { current.UnLoadItem(); } }
static void ShowCacheUIItems(UnityEditor.MenuCommand cmd) { //2017/11/27注释掉 // if (Application.isPlaying&&Editor_ApplicationPause.IsUICacheEnableWhenPlaying==false) return; UICacheItemMark current = cmd.context as UICacheItemMark; if (current != null) { current.LoadCacheUIItem(current.m_AdditionalOperate, current.m_AdditialParameter); } }