- Home /
Why does Visual Studio not show tooltip (Intellisense?) documentation for standard Mono classes?
I have noticed I get normal documentation while writing code for Unity specific classes such as GameObject
, but not for standard Mono classes, for example List
from the System
namespace:
When I'm coding on a normal .NET C# project, the documentation works as expected:
I have checked and the assembly for the System
namespace for Unity is from: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Unity Subset v3.5\System.dll
but there doesn't seem to be a System.XML
file with associated documentation. Is this normal? How do I get to fix this?
Answer by Blue_Ninja0 · Sep 21, 2017 at 09:41 PM
It has been brought to my attention that Unity doesn't include the System.xml
file required for Intellisense documentation for their old mono runtime.
It seems from Unity 2017 onwards, as long as you enable .NET 4.6 on the API Compatibility Level
setting on the Player Settings, you will get full documentation. I have tested and it worked fine.
EDIT: It seems at version 2017.2.7f and perhaps earlier it does not work again. I get Intellisense for Unity specific APIs but not for the Mono APIs.
Thank you so much! I've been searching for this answer for days. Intellisense works again.
@allvcrsaredifferent Are you sure it's working? What version are you on? I'm on 2017.2.7f and it doesn't work again for me.
Yep still works for me - I'm on version 2018.2.8f1
Do you get Intellisense for all classes (like List, Array, etc) with proper descriptions like on my question above, or just for Unity specific classes?
Answer by zigzagskitty · Oct 31, 2021 at 07:21 PM
This is happening to me in Unity 2020.3.21f1. Did you ever find a solution? I get intellisense method summaries for all unity-related methods, but only parameter info for methods under the system namespace.