diff --git a/Assets/Fungus/Scripts/Editor/VariableEditor.cs b/Assets/Fungus/Scripts/Editor/VariableEditor.cs index 09a23582..3e8ee0ad 100644 --- a/Assets/Fungus/Scripts/Editor/VariableEditor.cs +++ b/Assets/Fungus/Scripts/Editor/VariableEditor.cs @@ -209,13 +209,15 @@ namespace Fungus.EditorUtils return; } + var origLabel = new GUIContent(label); + if (EditorGUI.GetPropertyHeight(valueProp, label) > EditorGUIUtility.singleLineHeight) { - DrawMultiLineProperty(position, label, referenceProp, valueProp, flowchart); + DrawMultiLineProperty(position, origLabel, referenceProp, valueProp, flowchart); } else { - DrawSingleLineProperty(position, label, referenceProp, valueProp, flowchart); + DrawSingleLineProperty(position, origLabel, referenceProp, valueProp, flowchart); } EditorGUI.EndProperty();