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),