Beispiel #1
0
        public void RefreshValue()
        {
            arrayData.RefreshValue();

            for (int i = 0; i < arrayData.elements.Count; i++)
            {
                ObjectData objectData = arrayData.elements[i];

                EditorObject editorObjectInfo = null;

                if (editorElements.TryGetValue(i, out editorObjectInfo) == false)
                {
                    editorObjectInfo = new EditorObject(objectData, level, i.ToString());
                    editorElements.Add(i, editorObjectInfo);
                }
                else
                {
                    editorObjectInfo.RefreshValue(objectData, level, i.ToString());
                }
            }
        }
        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);
 }
 void EditorInit()
 {
     editorObjectInfo = new EditorObject(parameterData.objectInfo, level, parameterData.name);
 }