Resharper-unity: Unity Usages seems to not work reliably

Created on 9 Sep 2019  路  3Comments  路  Source: JetBrains/resharper-unity

One of the really cool features in Rider is that it shows Unity usages in scenes and prefabs. In our project, this feature has already worked, and sometimes still works (or it did fairly recently), but it hasn't been very reliable. When it doesn't work, I double check that project wide analysis is active and has completed, and also navigate into the code from an active Unity scene - but the relevant public fields and methods simply show "No asset usages", and "Find Unity usages" also comes up empty, even though the properties are overridden / the methods used (e.g. in event handlers).

This is in Unity 2019.1.14f1 (could also be one of the minor Unity updates broke this - it definitely worked with one of the earlier 2019.1 versions but even then, not always).

Capture_UnityRiderAllLooksGood

Most helpful comment

Turns out for some reason, I've had _Settings / Languages & Frameworks / Unity Engine / Parse Text Based Assets ..._ disabled. After re-enabling it, it worked again. Thanks @krasnotsvetov for helping with that.

I also noticed that this could probably break when disabling the Unity related metrics in _Editor / Code Vision_.

All 3 comments

Hi!
Does it happen with all files or it affects only a specific script?

When it happens, it seems to not work for any files (= doesn't work for all files).

Turns out for some reason, I've had _Settings / Languages & Frameworks / Unity Engine / Parse Text Based Assets ..._ disabled. After re-enabling it, it worked again. Thanks @krasnotsvetov for helping with that.

I also noticed that this could probably break when disabling the Unity related metrics in _Editor / Code Vision_.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EntranceJew picture EntranceJew  路  5Comments

mihakrajnc picture mihakrajnc  路  5Comments

justinlueders picture justinlueders  路  5Comments

oxysoft picture oxysoft  路  5Comments

Baste-RainGames picture Baste-RainGames  路  4Comments