Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by gte1000a · Jan 06, 2018 at 11:32 PM · unity 5visual studio

[Solved]Autocomplete in Visual Studio Won't Work, Please Help!

sooo , i created a new project , and everything was fine until i created the first script, i can't auto compelete , and the name of unity objects and functions (transform,vector3,start function,update function... and all of other types) are not highlighted[as you can see in the screen shot below], everything is fine and working if i load a script from another project. alt text

n01.png (82.4 kB)
Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image meat5000 ♦ · Jan 06, 2018 at 11:43 PM 0
Share

Did you click "Editor Attaching" in External Tools tab of Preferences?

I see an "Attach to Unity" button in the screener. What does that do?

avatar image gte1000a meat5000 ♦ · Jan 06, 2018 at 11:48 PM 0
Share

Yeah , it's selected

avatar image tormentoarmagedoom · Jan 07, 2018 at 12:40 AM 0
Share

look my answer (and acept it)

IS this, look at there, you have "miscelanoeus files". this is because de-sync from Unity to Visual studio.

5 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by gte1000a · Jan 07, 2018 at 12:58 AM

I fainally solved it ,, the problem was the two projects in the sloution expolrer , i just deleted them , then walllllah , it's works now , thanks guys for your help. alt text


n02.png (29.9 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
3

Answer by facejets · Dec 22, 2019 at 02:01 AM

You might have a setting wrong. 'External Script Editor' should be set to a Visual Studio install. It should be located here, in Unity:

Edit > Preferences > External Tools -

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by EDevJogos · Jan 07, 2018 at 12:31 AM

Look at the drop box bellow the Spawn.cs, it reads Miscelanious Files, this means that this script is not linked to your unity project, this can happen for many reasons and usually it's solved by just closing and opening the VS again, but my guess is that you already tried that.


Another reason is that for some reason unity is not reconizing the Visual Studio Tools for Unity, if you did not tried yet, you can dowload it and reinstal.


Another option is just select the script in the VS, right click it and select properties, they will then show up in a new box in the right corner, look for the drop box "Build Action" saying "Compile" change it to "None" and than back to "Compile"


There is also this answer on StackOverflow. When this happend to me this solution didin't work, but it may work for you:

https://stackoverflow.com/questions/36350313/visual-studio-with-unity3d-wont-work-like-it-used-to-be


By the way, the one that worked for me was changing the Build Action.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image gte1000a · Jan 07, 2018 at 12:49 AM 0
Share

Have already tried build action method but did'nt work , tried to install nuget tool , but it says that the current installed product dont work with it , tried to unload and load the project again, recreate the script , restart unity and VS, none of that worked.

avatar image
1

Answer by tormentoarmagedoom · Jan 07, 2018 at 12:39 AM

what program are you using for scripts? if is visual studio, when open the file, look at there.

alt text

It must say your project name. if it says Miscelaneous files, it will be "outside" your project.

Better way is:

-copy the script to a notepad

-close Visual studio

-delete the script from unity

-create a new script in Unity with same name

-open the script from unity (it opens Visual studio)

-Paste the script

And look if it says Mikscelaneous files or not

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image gte1000a · Jan 07, 2018 at 12:44 AM 0
Share

Have already tried that.

avatar image
0

Answer by VWGoA · Jan 28, 2019 at 11:38 PM

What fixed it for me was downloading and installing .NET Framework 4.6.1 Developer Pack. There was a popup when first launching VS saying something about version differences. I ignored it because I didn't understand it, and it implied things would continue to work, but that I may choose to upgrade. Turns out I needed to upgrade to make code completion work, and "could not navigate to symbol under caret" disappear.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

152 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Visual Studio Code crashes in Unity error 2 Answers

update the whole old project in unity and visual studio as is written newly 0 Answers

Communication between Webplayer Built Unity Application and windows Form, when both are embeded in the same Windows Form. 1 Answer

VS2015 installation error with Unity installer (1603) 0 Answers

Game lagging so much on android 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges