Autocomplete does not work in MonoDevelop
I don't know what happened but the autocomplete does not work in MonoDevelop, and i can't declare or create the GameObject variable in my scripts.
I tried closing and opening the project, I restarted my PC but it didn't work.
Sometimes this happens to me when the project hasn't compiled properly, and UnityEngine library is not found, so any objects in this library are not found. I have not yet pin-pointed 100% the exact cause, or a full-proof method to fix it. By observation I noticed that many times when I create a new script in the Unity editor, this triggers a project recompile (revolving widget in the bottom right). If during this recompile (i.e. before the recompile finishes) I switch to VS in a hurry to add code to the new script no UnityEngine objects are found.
I've fixed it either by adding a new line in a script and then returning to Unity, which forces a recompile, or by adding a new script in the Editor, and then wait for the recompile to finish before switching to VS.
Deleting the Library folder should also work, but I thing that might take much longer to complete.
tried deleting the library folder but didn't work out so just installed VS
Answer by xxmariofer · Jan 13, 2019 at 12:51 PM
Give us some extra information please, have you tryed the openc#project button? if yes i would suggest removing temporary (like library solution etc... make a backup if its the first time you erase them in case you erase some important folder) files from the project and restart it. If problem continues create a GameObject myObject var and tell us whats visual studio is telling you.
actually the Autoprediction or autocompletion is not working that's what i found out and i tried to search as much as i can and implemented the given solution but nothing seems to be working to solve this issue
Answer by sh_code · Jan 13, 2019 at 08:54 PM
This sounds like issue with your IDE, not unity. If you're using visual studio, try to reinstall it. I remember it breaking in this way for me some time ago, reinstall solved it.
yes this is the issue with the monodevelop but i'm unable to solve it
Answer by UnverOnal · Jan 16, 2019 at 12:09 AM
Check if other types that derived from "Monobehaviour" they are working. If they are not working , then i think your script may be out of the project . Try add your script to project which contains your other scripts(if they are exist) under the solution explorer.
This issue could take place in VS as well.