Fix bug of populating asset picker if option platform type does not exist.

This commit is contained in:
Chandler Cox
2023-07-20 21:31:07 -05:00
parent b2b10ce7da
commit a1cdf3e733

View File

@@ -80,6 +80,8 @@ namespace FlaxEditor.CustomEditors.Editors
assetType = customType;
else if (!Content.Settings.GameSettings.OptionalPlatformSettings.Contains(assetReference.TypeName))
Debug.LogWarning(string.Format("Unknown asset type '{0}' to use for asset picker filter.", assetReference.TypeName));
else
assetType = ScriptType.Void;
}
}