Closed sr4dev closed 2 months ago
I have identified the pattern.
The Unity scripts like MonoBehaviour and ScriptableObject are not using the Unity File Layout; instead, they're using a standard File Layout.
Update: It seems that the Unity Support Extension is not being recognized in ReSharper 2024.1.1.
ReSharper 2023.3.4 + Unity Support 2023.3.2.100
ReSharper 2024.1.1 + Unity Support 2024.1.0.307
That's very unexpected. I have ReSharper 2024.1.1 and Unity Support 2024.1.0.307 installed just fine. I'm not seeing it marked as "incompatible", and don't understand how we could have different results there. Have you restarted VS since installing the Unity Support plugin? It might be worth uninstalling, restarting VS and reinstalling.
Yes, whenever I upgraded ReSharper or downgraded it, I always restarted VS. I also restarted VS every time I installed Unity Support or deleted the existing version.
However, I haven't rebooted my PC yet. I'll try that later. I'll also try reinstalling VS.
Shouldn't need to restart your PC or reinstall VS. It might be that you need to install ReSharper C++. The shader support in the Unity plugin uses the C++ engine to parse the code, but previous versions have been ok to run without it installed. Something might have changed.
Thank you for the feedback! Installing ReSharper++ solved all the issues!
When I use Windows, I use Visual Studio + ReSharper, and when I'm on a Mac, I develop using Rider. Recently, I updated to ReSharper 2024.1.1 and Rider 2024.1.1.
After the update, the File Layout for Unity that used to work well is no longer working in ReSharper, but it still works in Rider.
Below is the Unity File Layout that I am using.
XML
Below is the .DotSettings file that I am using. dotsettings.zip
By the way, is there any plan to add a Unity-specific File Layout tab to ReSharper? When I need to edit the File Layout for Unity, I follow the method described at https://github.com/JetBrains/resharper-unity/issues/1771, but this method is quite painful.