Example #1
0
 void RefreshValue()
 {
     if (objectData.listData != null)
     {
         if (editorList == null)
         {
             editorList = new EditorList(objectData.listData, level + 1);
         }
         else
         {
             editorList.RefreshValue(objectData.listData);
         }
     }
     else if (objectData.arrayData != null)
     {
         if (editorArray == null)
         {
             editorArray = new EditorArray(objectData.arrayData, level + 1);
         }
         else
         {
             editorArray.RefreshValue(objectData.arrayData);
         }
     }
     else if (objectData.classData != null)
     {
         if (editorClass == null)
         {
             editorClass = new EditorClass(objectData.classData, level + 1, false, name);
             editorClass.GetEditorField();
         }
         else
         {
             editorClass.RefreshValue(objectData.classData);
         }
     }
 }
Example #2
0
 public EditorInstance(object context)
 {
     info = new EditorClass(context, context.GetType(), -1, true, context.GetType().Name);
     info.GetEditorField();
     info.GetEditorMethod();
 }