Skip to content

Commit

Permalink
fix: fixing networkprefab drawer height
Browse files Browse the repository at this point in the history
height should always be calculated using the list property.
the reference field doesn't need a foldout because the list already has it
  • Loading branch information
James-Frowen committed Feb 2, 2023
1 parent 2b32952 commit 8884070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirage/Editor/NetworkPrefabsPropertyDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public override float GetPropertyHeight(SerializedProperty property, GUIContent
// spacing between foldout and list
height += EditorGUIUtility.standardVerticalSpacing;

if (property.objectReferenceValue != null && property.isExpanded)
if (property.objectReferenceValue != null)
{
var obj = new SerializedObject(property.objectReferenceValue);
var prop = obj.FindProperty(nameof(NetworkPrefabs.Prefabs));
Expand Down

0 comments on commit 8884070

Please sign in to comment.