Skip to content

Commit a8d1883

Browse files
committed
fix: Updated according to changes in TypeReferences
1 parent d3f9e4f commit a8d1883

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

Editor/Drawers/TypeReferenceWithBaseTypesDrawer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ private void DrawTypeReferenceField(Rect position, SerializedProperty property,
6363
position,
6464
dropdownDrawer,
6565
typeOptionsAttribute.ShortName,
66-
typeOptionsAttribute.UseBuiltInNames,
6766
onTypeSelected,
6867
triggerDropdownImmediately);
6968

Editor/ScriptableObjects/GenericSOCreator.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ private static void FinishSOCreationInteractively()
3535
{
3636
(Type genericSOType, string fileName) = PersistentStorage.GetGenericSODetails();
3737
var concreteType = BehavioursDatabase.GetConcreteType(genericSOType);
38-
Debug.Log("before creating type");
3938
CreateAssetFromConcreteType(concreteType, asset => ProjectWindowUtil.CreateAsset(asset, $"{fileName}.asset"));
4039
}
4140
finally
@@ -112,8 +111,7 @@ private static ScriptableObject CreateAssetFromConcreteType(Type concreteType, A
112111
catch (NullReferenceException)
113112
{
114113
Debug.LogError(
115-
$"{nameof(CreateAssetFromConcreteType)} was most likely called too early. " +
116-
"Add it to EditorApplication.delayCall instead.");
114+
$"{nameof(CreateAssetFromConcreteType)} was most likely called too early. Delay it more.");
117115

118116
throw;
119117
}

Editor/ScriptableObjects/SelectionWindow/OneTypeSelectionWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private SelectionTree GetSelectionTree(NonGenericAttribute attribute, Action<Typ
3636
_dropdownWindow.Close();
3737
onTypeSelected(new[] { type });
3838
},
39-
attribute.SearchbarMinItemsCount, attribute.ExcludeNone);
39+
TypeReferences.Editor.ProjectSettings.SearchbarMinItemsCount, attribute.ExcludeNone);
4040

4141
if (attribute.ExpandAllFolders)
4242
selectionTree.ExpandAllFolders();

0 commit comments

Comments
 (0)