You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: