Skip to content

Commit 876bb23

Browse files
committed
Minor fixes
1 parent a56141b commit 876bb23

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Editor/Drawers/TypeReferencePropertyDrawer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public sealed class TypeReferencePropertyDrawer : PropertyDrawer
1515
{
1616
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
1717
{
18-
return EditorStyles.popup.CalcHeight(GUIContent.none, 0);
18+
return EditorStyles.popup.CalcHeight(GUIContent.none, 0f);
1919
}
2020

2121
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
@@ -40,7 +40,7 @@ private void DrawTypeReferenceField(Rect position, SerializedProperty property)
4040

4141
var selectedType = TypeCache.GetType(serializedTypeRef.TypeNameAndAssembly);
4242

43-
if (selectedType != null && !typeOptionsAttribute.MatchesRequirements(selectedType))
43+
if (selectedType != null && ! typeOptionsAttribute.MatchesRequirements(selectedType))
4444
{
4545
Debug.Log($"{property.name} had the {selectedType} value but the type does not match " +
4646
"constraints set in the attribute, so it was set to null.");

Editor/Util/SerializedTypeReference.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ internal class SerializedTypeReference
1313
private readonly SerializedProperty _typeNameProperty;
1414
private readonly SerializedProperty _guidProperty;
1515
private readonly SerializedProperty _guidAssignmentFailedProperty;
16-
private readonly TypeReference _typeRefInstance;
1716

1817
public SerializedTypeReference(SerializedProperty typeReferenceProperty)
1918
{

0 commit comments

Comments
 (0)