Persistent Error for Unity's UnityEditor.AssetDatabase, C#
Hi, my Editor keeps showing me that it can't "resolve the symbol" AssetDatabase.
The class AssetDatabase is contained in UnityEditor and I am using the reference already. Notice that it is greyed out, implying that it is not currently used.
Using the light bulb button attempts to fix it by re-adding the reference, I guess?
This does fix the issue and in the list of <using> references, the text for UnityEditor becomes white.
However, after a few seconds, the error pops up again for all references of AssetDatabase.
What i tried:
- Ignoring the error in Errors in Solution. It keeps reappearing there.
- Invalidating Cache and Local History did not fix it
Any help is appreciated,
Cheers.
Please sign in to leave a comment.
Hi Robin,
What Rider version are you on? I'd suggest that you try the latest Rider EAP build: https://www.jetbrains.com/rider/nextversion/. There is a chance that the problem is already fixed.
Please let me know if the issue persists there, we'll take a closer look at it.
Hi Julia, thank you so much for the suggestion. The provided Early Access Build does not show the error any longer.
2021.3 Beta build 213.5744.263
Released: December 1, 2021
Thanks!
Robin,
Thanks a lot for letting me know!
I have the same error in 2024.3. Will it be fixed?
PennyLu Sorry, can't reproduce with 2024.3 on my end. Have you tried applying the quick fix from the Alt+Enter menu? Could you please share a screenshot of your code (including using directives) and the csproj generated for the assembly in question? You can share the files privately by uploading it to Upload service and posting the upload ID here.