提交 352d944d 编写于 作者: M me66ccff 提交者: tanghai

删除多余代码

上级 11f6dd65
......@@ -87,9 +87,9 @@ public class ReferenceCollectorEditor: Editor
{
GUILayout.BeginHorizontal();
property = dataProperty.GetArrayElementAtIndex(i).FindPropertyRelative("key");
property.stringValue = EditorGUILayout.TextField(property.stringValue, GUILayout.Width(150));
EditorGUILayout.TextField(property.stringValue, GUILayout.Width(150));
property = dataProperty.GetArrayElementAtIndex(i).FindPropertyRelative("gameObject");
property.objectReferenceValue = EditorGUILayout.ObjectField(property.objectReferenceValue, typeof(Object), true);
EditorGUILayout.ObjectField(property.objectReferenceValue, typeof(Object), true);
if (GUILayout.Button("X"))
{
delList.Add(i);
......@@ -129,4 +129,4 @@ public class ReferenceCollectorEditor: Editor
element.FindPropertyRelative("key").stringValue = key;
element.FindPropertyRelative("gameObject").objectReferenceValue = obj;
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册