From aa2fa2e7b2e9749c4f14e7c42176729e47a04f72 Mon Sep 17 00:00:00 2001 From: Thor Brigsted Date: Thu, 11 Apr 2019 22:43:29 +0200 Subject: [PATCH] Fixed compile error CS1738: Named arguments must appear after the positional arguments --- Scripts/Editor/NodeEditorGUILayout.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/Editor/NodeEditorGUILayout.cs b/Scripts/Editor/NodeEditorGUILayout.cs index c8cc9f7..ea8e9f5 100644 --- a/Scripts/Editor/NodeEditorGUILayout.cs +++ b/Scripts/Editor/NodeEditorGUILayout.cs @@ -76,14 +76,14 @@ namespace XNodeEditor { GUIStyle inputStyle = NodeEditorResources.styles.inputPort; switch (showBacking) { case XNode.Node.ShowBackingValue.Unconnected: - DrawStyledPropertyField(property, label, inputStyle, showBacking: !port.IsConnected, includeChildren); + DrawStyledPropertyField(property, label, inputStyle, !port.IsConnected, includeChildren); break; case XNode.Node.ShowBackingValue.Never: // Display a label EditorGUILayout.LabelField(label != null ? label : new GUIContent(property.displayName), inputStyle); break; case XNode.Node.ShowBackingValue.Always: - DrawStyledPropertyField(property, label, inputStyle, showBacking: true, includeChildren); + DrawStyledPropertyField(property, label, inputStyle, true, includeChildren); break; } @@ -117,14 +117,14 @@ namespace XNodeEditor { } switch (showBacking) { case XNode.Node.ShowBackingValue.Unconnected: - DrawStyledPropertyField(property, label, NodeEditorResources.OutputPort, showBacking: !port.IsConnected, includeChildren); + DrawStyledPropertyField(property, label, NodeEditorResources.OutputPort, !port.IsConnected, includeChildren); break; case XNode.Node.ShowBackingValue.Never: // Display a label EditorGUILayout.LabelField(label != null ? label : new GUIContent(property.displayName), NodeEditorResources.OutputPort, GUILayout.MinWidth(30)); break; case XNode.Node.ShowBackingValue.Always: - DrawStyledPropertyField(property, label, NodeEditorResources.OutputPort, showBacking: true, includeChildren); + DrawStyledPropertyField(property, label, NodeEditorResources.OutputPort, true, includeChildren); // Display an editable property field break; }