So after a while of using VS 2019 I’ve noticed that two issues are occurring for me, and would love to get some help with. The first is when typing the usual void Update or void OnTriggerEnter() the intellisense should kick in to allow me to auto complete the line however ive noticed that this does not happen.
Another issue that I’m having is similar to the one above but not entirely the same. Once I’ve typed out the void function, it is then dimmed with a warning saying that the function is unused. Obviously I never call the function as it is mono-behaviour however there is no getting rid of it.
I already added VS to the external tools, all of unity’s the intellisense works bar this and its so annoying.
Hi, I’ve been having the same issue with OnTriggerEnter() and Visual Studio where it doesn’t recognise that OnTriggerEnter() is a built in function in Unity’s MonoBehaviour. I believe that VS is having issues between Unity 2019 and VS 2019 and they do acknowledge the issue. I’ve also been having a problem when I open a script from Unity, Visual Studio wont open it automatically but that’s easily resolved by clicking the chosen script on the right hand side under the Assets folder.
I had those issues today after switching to vs2019 from vscode (vscode’s responsiveness is not great lately).
Initially I had those issues but they were gone after setting Unity/Preferences/External Tools/External Script Editor to VS2019 and deleting the sln/csproj files from the Unity project’s folder.
I recently had this problem and was able to find a solution for VS 2019. The problem was that I hadn’t downloaded a modification to VS. To fix the problem:
Open VS Installer
Click Modify on the VS 2019 tab
Scroll down until you find “Game development with Unity” and click it