UnityEditor references not found after saving

I have a problem that when I save a file in Rider, references to UnityEditor are no longer found by Rider.

Before saving:

After saving:


When I press the button to auto import, it works again, like in the first screenshot. But when I save again the reference can not be found again.

 

It seems that this problem occurs only for names in the UnityEditor namespace. Like AssetDatabase and Handles.

I also found out that this problem does not occur when Unity is not opened.

 

I am using

- Rider 2021.3.2

- Unity 2021.2.7f1

1 comment
Comment actions Permalink

Found a workaround described in the Unity Forums.

 

tl;dr: It seems like the problem was that I had "Player Projects" enabled in the Unity settings.

0

Please sign in to leave a comment.