Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intellisense not working #15

Open
CConchelos opened this issue Oct 30, 2019 · 1 comment
Open

Intellisense not working #15

CConchelos opened this issue Oct 30, 2019 · 1 comment

Comments

@CConchelos
Copy link

Intellisense is not working in Visual Studio Code
I can do var x = this.gameObject.Children() and I can see in the watch window that x has a collection of children, but putting this.gameObject.Children() directly in watch says: Evaluate request failed (Method Children' not found in type UnityEngine.GameObject'.).
In VS 2017, I could not be sure that it was working at all, I could not evaluate the variables either.
I think it was quasi working in VS 2017, I had a LINQ checking for Decendants().Where and that worked fine.
Unity 2019.2.9f1
VS Community 2017 15.9.17
Visual Studio Code 1.39.2

@CConchelos
Copy link
Author

CConchelos commented Oct 30, 2019

More info for VS Code. I can confirm that trying
var thing1 = this.gameObject.Descendants().Where(d => d.name == "name").FirstOrDefault();
returns null, where
var thing1 = this.gameObject.Descendants().ToList();
var thing2 = thing1.Where(d => d.name == "name").FirstOrDefault();
Does in fact work. However, a watch on thing1 will not evaluate, but a watch on thing2 will give me the gameobject info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant