-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark methods with MenuItem atribute as used #19
Comments
This isn't what I'm seeing. A private method is marked as unused, but it's Visual Studio doing that, and there's not much we can do to fix that. Your screenshot is showing that ReSharper thinks it's unused, but mine shows that ReSharper thinks it's in use - you can see the Roslyn icon in the Alt+Enter menu. Can you confirm that the Unity Support plugin is working elsewhere? Do you see "Unity event functions" in the Generate method, for example? Also, this wasn't with exactly the same version of Unity. Can you confirm that the attribute is still called |
I confirm that indeed it is the right attribute. Also, the plugin does work as for instance, I can generate Unity event functions. And the screen you've posted is intereseting to say the least, I've never seen that magnifier icon along those squiggles on light or wrench. I don't know what's going on, maybe something's wrong on my side. |
You get the magnifier if you use the alt+enter keyboard shortcut, while clicking the icon in the text gutter doesn't show it (the idea is that the magnifier icon is a hint that you can click + search, or just start typing to search. TBH, I don't get why it's not shown on click too). The squiggles on the lightbulb and wrench are the Roslyn logo, and indicate that these actions come from Visual Studio, rather than ReSharper. Can you show the Quick Doc for the |
Okay it so obvious that I did manage to not see it during all this time, indeed the magnifier is present ! Now I think we're getting closer to the problem, But the attribute exists ... and I use attributes from Unity assemblies. Actually I've even tried to copy custom annotations implementation but they are simply ignored as |
Hang on, that popup says that I'll see if I can get some more details on this. |
Alright, great ! That's funny how each other can have different setups and get so much different results 🤣. |
http://imgur.com/aEwEMAj
http://docs.unity3d.com/ScriptReference/MenuItem.html
Thanks!
The text was updated successfully, but these errors were encountered: