- Home /
Can't find some functions like 'OnParticleCollision'.
Hello
Now I am taking an online Unity Course and i saw this:
Some functions like 'OnParticleCollision' , 'OnCollisionEnter' are on the list when some words were typed in Visual Studio, But in my case, any functions don't appear on the list:
Before I re-installed OS, it worked as i wanted, but after re-installed Unity, there are nothing on the list.
Of course if I type those functions by my hands, it works well.
The problem is that I can't get the list of functions to get them automatically.
How to solve it?
Thank you.
Answer by dan_wipf · Dec 02, 2018 at 06:32 AM
Well this depends on which code editor you are, what extensions you’ve downloaded. for example on my mac i have visual code, and the AutoComplete is like in your example not the full stuff. on the other hand on my windows, i’m on visual studio community, where autocomplete is fully working. so to sum up the diffrence are extensions and the editor you use
Oh, Sorry to forget this: I am using Visual Studio community as well and it worked that AutoComplete well. after i re-installed it, it stoped AutuComplete...
If you installed VS manually you have to make sure you have the "Unity Tools for Visual Studio" installed Just klick on Tools --> Extensions and Updates. You should see the Tools for Unity listed here. If not, klick on Tools --> Get Tools and Features and look for the Unity tools here and install them.
If you have the tools installed, make sure you did not disable the code completion feature for the Unity messages. See those screens for reference:
as allways, a good solid answer from mr. legend bunny sir!
does it never shows autocomplete? like if you type inside a function tra.. (...nsform?)
Everything is find thanks to mr. Bunny! $$anonymous$$y problem was exactly what mr. Bunny mentioned!
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How would I make a ListChangedEvent? 1 Answer
Proplem with position reset script of certain object 0 Answers
Reference Variables and Drag-And-Drop 0 Answers