From 44fb6140915893659245eeafceb80b14e7039fe3 Mon Sep 17 00:00:00 2001 From: Filippo Banno Date: Thu, 23 Jul 2020 18:08:02 +0100 Subject: [PATCH] Do not draw foldout over object field This made the object field un-clickable. --- libs/unity/library/Editor/PeerConnectionEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/unity/library/Editor/PeerConnectionEditor.cs b/libs/unity/library/Editor/PeerConnectionEditor.cs index 48ea5ae19..ee6b5ab24 100644 --- a/libs/unity/library/Editor/PeerConnectionEditor.cs +++ b/libs/unity/library/Editor/PeerConnectionEditor.cs @@ -173,7 +173,7 @@ void OnEnable() { var p = element.FindPropertyRelative("_source"); Object obj = p.objectReferenceValue; - sourceIsExpanded = EditorGUI.Foldout(new Rect(rect.x, y0, fieldWidth, EditorGUIUtility.singleLineHeight), p.isExpanded, new GUIContent()); + sourceIsExpanded = EditorGUI.Foldout(new Rect(rect.x, y0, 0, EditorGUIUtility.singleLineHeight), p.isExpanded, new GUIContent()); p.isExpanded = sourceIsExpanded; obj = EditorGUI.ObjectField( new Rect(rect.x, y0, fieldWidth, EditorGUIUtility.singleLineHeight),