Search Issue Tracker

Fixed in 2022.1.X

Votes

0

Found in

2020.2

2020.3

2021.1

2021.2

2021.2.0a15

Issue ID

1334266

Regression

No

GetAvailableImporterTypes returns duplicates AssetImporter types

Asset - Importers

-

How to reproduce:
1. Open the user's attached project
2. In the Project window select the 'Scenes' folder
3. In the top bar menu select 'BugRepro' > 'GetImporterOverride'
4. Observe the Console

Expected result: GetAvailableImporterTypes should return nothing for folders and should never include UnityEditor.AssetImporter in the returned array
Actual result: GetAvailableImporterTypes returns array of [UnityEditor.AssetImporter, UnityEditor.AssetImporter]

Reproducible with: 2020.2.7f1, 2020.3.8f1, 2021.1.7f1, 2021.2.0a16
Cannot test with: 2018.4.35f1 (PrecompiledAssemblyException), 2019.4.25f1 (due to script errors)

Notes:
- The issue is also reproducible with other types of Assets
- The logs return 'AvilableOverrides: UnityEditor.AssetImporter, UnityEditor.AssetImporter' or 'AvilableOverrides: UnityEditor.ModelImporter, UnityEditor.AssetImporter' depending on the Asset type

  1. Resolution Note (fix version 2022.1):

    Fixed in: 2022.1.0a16

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.