Unity Supress Common Warnings override

Hello,

If Supress Common Warnings is ticked on in Project Settings → Player, unused class members in Unity classes are not marked as an issue due to CS0169 being there.
Visual Studio shamelessly overrides that, and it is quite useful. Is it possible to add such an option to RIDER IDE?



Best regards,
Aron

0
1 comment

Thanks for contacting Rider support. This topic is covered under RIDER-111323 Unused private members will not show warning messages in Unity projects. By design, Rider shows the same warnings as Unity, so it follows the Suppress Common Warnings setting. 

You're welcome to comment in the issue, and we may revisit this later.

As a workaround, you can keep the setting on in Unity and override it in Rider only. To do that, add a Directory.Build.props file to the project root:

<Project>
    <PropertyGroup>
        <NoWarn></NoWarn>
    </PropertyGroup>
</Project>

Please let me know if you have any other concerns.

0

Please sign in to leave a comment.