public override void OnNodeGUI() { var names = inputValues.GetNames <object>(); var values = inputValues.GetValues <object>(); EditorGUILayout.LabelField("names: [" + names.Count + "]"); for (int i = 0; i < values.Count; i++) { if (i < names.Count && names[i] != null) { if (values[i] != null) { EditorGUILayout.LabelField(names[i] + " <" + values[i].GetType() + ": " + values[i] + ">"); } else { EditorGUILayout.LabelField(names[i]); } } else { EditorGUILayout.LabelField("null"); } } }
public override void OnNodeGUI() { EditorGUILayout.LabelField("inputs:"); var names = outputValues.GetNames <object>(); var values = outputValues.GetValues <object>(); if (names != null && values != null) { for (int i = 0; i < values.Count; i++) { if (i < names.Count) { EditorGUILayout.LabelField(names[i] + ": " + values[i]); } else if (values[i] != null) { EditorGUILayout.LabelField(values[i].ToString()); } } } }