Hi,
you know we use these structure alot.
GetComponent();
But it doesn’t have autocompletion ability.
Which is very necessary.
After writing Ani and press tab it should be this Animator>();
thanks
Hi,
you know we use these structure alot.
GetComponent();
But it doesn’t have autocompletion ability.
Which is very necessary.
After writing Ani and press tab it should be this Animator>();
thanks
Use Visual Studio 2022. That release has a lot of (AI) autocomplete!
If you want to expand the feature set of visual studio, it could be reported there, not at Unity
nope, autocomplation is implemented by unity. If they add that future it will be used by VS.
Did you try 2022 as I said?
No, it’s not implemented by Unity, it’s the IDE that does it by indexing the referenced assemblies.
Don’t know what planet you’re living on but Visual Studio is able to auto complete everything available in the Unity API.
It sounds like your IDE isn’t set up properly.
I tried but I got net framework 4.8 setup error and couldn’t be able to install it.
does it really complete the phrase in the way that I explained in my first message ?
Intellisense just IS… It is fully implemented and supported in Visual Studio under Unity. It has nothing to do with Unity except that Unity happened to produce the code that intellisense ransacks to help you with.
This may help you with intellisense and possibly other Visual Studio integration problems:
Sometimes the fix is as simple as doing Assets → Open C# Project from Unity. Other times it requires more.
Other times it requires you also nuke the userprefs and .vsconfig and other crufty low-value high-hassle files that Visual Studio tends to slowly damage over time, then try the above trick.
Barring all that, move on to other ideas:
https://discussions.unity.com/t/778503
Also, try update the VSCode package inside of Unity: Window → Package Manager → Search for Visual Studio Code Editor → Press the Update button
Also, this: https://discussions.unity.com/t/805330/7
Yes, it works for me in Visual Studio as expected and as mentioned in your first message. I’m using VS 2019 (I need to upgrade!) and Unity 2021.2
I use Unity 2020 LTS
As we’ve said, it has nothing to do with Unity.
It works in 2020 LTS for me also.