private bool DrawAfterDeal() { bool isOK = true; GUILayout.BeginVertical("Box"); mAfterDeal = (AfterDeal)EditorGUILayout.EnumPopup("后续处理:", mAfterDeal, GUILayout.MinWidth(100)); if (AfterDealClass.ContainsKey(mAfterDeal)) { var cls = AfterDealClass[mAfterDeal]; var warning = cls.CheckNeed(isSavePrefab, mSearchRange, mIsDeepSearch, mHitRule, mIsHitEnable, mAfterDeal); if (!string.IsNullOrEmpty(warning)) { isOK = false; EditorGUILayout.HelpBox(warning, MessageType.Error); } cls.OnDraw(); } GUILayout.EndVertical(); return(isOK); }
public string CheckNeed(bool isSave, SearchRange sr, bool isDS, HitRule hr, bool isHE, AfterDeal ad) { return(""); }
public string CheckNeed(bool isSave, SearchRange sr, bool isDS, HitRule hr, bool isHE, AfterDeal ad) { if (!isDS) { return("需要启用深度查找功能"); } if (isHE == false) { return("需要启用命中判断"); } return(""); }
public string CheckNeed(bool isSave, SearchRange sr, bool isDS, HitRule hr, bool isHE, AfterDeal ad) { if (!isSave) { return("需要启用保存prefab功能"); } if (!isDS) { return("需要启用深度查找功能"); } if (hr != HitRule.含有控件 || isHE == false) { return("需要启用命中Text组件或TextMeshProUGUI组件的判断"); } return(""); }
public string CheckNeed(bool isSave, SearchRange sr, bool isDS, HitRule hr, bool isHE, AfterDeal ad) { if (isDS) { return("查找Prefab里的资源依赖暂时不支持深度查找"); } return(""); }
public string CheckNeed(bool isSave, SearchRange sr, bool isDS, HitRule hr, bool isHE, AfterDeal ad) { if (!isSave) { return("需要启用保存prefab功能"); } return(""); }