Skip to content
This repository was archived by the owner on Mar 22, 2022. It is now read-only.

Commit 44fb614

Browse files
committed
Do not draw foldout over object field
This made the object field un-clickable.
1 parent 54ea481 commit 44fb614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/unity/library/Editor/PeerConnectionEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void OnEnable()
173173
{
174174
var p = element.FindPropertyRelative("_source");
175175
Object obj = p.objectReferenceValue;
176-
sourceIsExpanded = EditorGUI.Foldout(new Rect(rect.x, y0, fieldWidth, EditorGUIUtility.singleLineHeight), p.isExpanded, new GUIContent());
176+
sourceIsExpanded = EditorGUI.Foldout(new Rect(rect.x, y0, 0, EditorGUIUtility.singleLineHeight), p.isExpanded, new GUIContent());
177177
p.isExpanded = sourceIsExpanded;
178178
obj = EditorGUI.ObjectField(
179179
new Rect(rect.x, y0, fieldWidth, EditorGUIUtility.singleLineHeight),

0 commit comments

Comments
 (0)