public static void GUI(EditorList info) { EditorGUI.indentLevel = info.level; info.isFold = EditorGUILayout.Foldout(info.isFold, info.arrayData.name); if (info.isFold == false) { return; } bool isChange = false; int size = info.arrayData.Count; InputTool.InputInt("Size", ref size, ref isChange); if (isChange) { info.arrayData.SetCount(size); } info.RefreshValue(); for (int i = 0; i < size; i++) { EditorObject.GUI(info.editorElements[i]); } }
public static void GUI(EditorDictionary info) { EditorGUI.indentLevel = info.level; info.isFold = EditorGUILayout.Foldout(info.isFold, info.dictionaryData.name); if (info.isFold == false) { return; } info.RefreshValue(); foreach (var item in info.editorElements) { EditorObject.GUI(item.Key); EditorObject.GUI(item.Value); } }
public static void GUI(EditorField info, string searchKeyword = "", AccessModifier accessModifier = AccessModifier.All, InstanceType instanceType = InstanceType.Instance) { //info.fieldData.RefreshValue();//重要 字段初始化有可能未空 没有引用 if (accessModifier != AccessModifier.All && info.fieldData.accessModifier != accessModifier) { return; } if (instanceType != InstanceType.All && info.fieldData.instanceType != instanceType) { return; } if (searchKeyword != string.Empty && info.name.ToLower().Contains(searchKeyword) == false) { return; } EditorObject.GUI(info.editorObjectInfo); }
public static void GUI(EditorParameter info) { EditorObject.GUI(info.editorObjectInfo); }