I happen to notice that when you create a prefab with a monobehaviour that has a public method and then hook it up to a UnityEvent OnClick (UI Button) event that Rider is able to show that it is serialized in one of the prefabs. 1 asset usage is then displayed above the method.
However, whenever I have a prefab where the script is situated at the root but the button as a child and then serialized the method it doesn't show up in Rider as 'asset usage'. It only shows this whenever the script & button are on the same game object.
Is this a bug or intended behaviour? Or can I change the behaviour so it scans the whole prefab for usage.
At this point it confuses me because for any children buttons the method serialized is not shown with any method usage / event handler. I've made mistakes of removing methods / marking them as obsolete even though they're actually in use just Rider not checking the whole prefab for serialized usage.
Looking at the Unity settings "Parse text based asset files for script and event handler usages" is turned on but just doesn't seem to scan the whole prefab. No option to do so either.
Using Rider: 2019.3.2