Esempio n. 1
0
 /// <summary> Draws standard field editors for all public fields </summary>
 protected void DrawDefaultNodeBodyGUI()
 {
     FieldInfo[] fields = GetInspectorFields(target);
     for (int i = 0; i < fields.Length; i++)
     {
         object[] fieldAttribs = fields[i].GetCustomAttributes(false);
         if (NodeEditorUtilities.HasAttrib <Node.InputAttribute>(fieldAttribs) || NodeEditorUtilities.HasAttrib <Node.OutputAttribute>(fieldAttribs))
         {
             continue;
         }
         DrawFieldInfoDrawerGUI(fields[i]);
     }
     EditorGUILayout.Space();
 }