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

Commit

Permalink
Do not draw foldout over object field
Browse files Browse the repository at this point in the history
This made the object field un-clickable.
  • Loading branch information
fibann committed Jul 24, 2020
1 parent 54ea481 commit 44fb614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/unity/library/Editor/PeerConnectionEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 44fb614

Please sign in to comment.