neuecc / linq-to-gameobject-for-unity Goto Github PK
View Code? Open in Web Editor NEWLINQ to GameObject - Traverse GameObject Hierarchy by LINQ
License: MIT License
LINQ to GameObject - Traverse GameObject Hierarchy by LINQ
License: MIT License
SampleSceneScript's Add.
.Where(.. && x.name != "PreviewMaterials")
(note: this solve is very very adhoc...)
When imported to Unity 2017.1f3, the editor prompt to upgrade the API, but it never finished, always ended up in a crash.
Hi,
OfComponent extension has a constraint that T is a Component. That used to be a requirement for a call to GetComponent() but that is no longer the case. It is problematic as it does not allow to GetComponent() by its interface say we have:
class MyCompoenent : MonoBehaviour, IInteractable
{
}
it is valid to do gameObject.GetCompoenent() but currently not possible to do
gameObjects.OfComonent();
In Descendants
, stop search children option like Roslyn's DescendantNodes(Func<SyntaxNode, bool> descendIntoChildren)
.
Hello.
I am having the following problem :
http://puu.sh/gWsdG/12d154c7e6.png
It wont find the Where in
_centerSlowPulse = this.gameObject.Descendants ().Where (x => x.name == "CenterSlowPulse");
I can't download this from the Asset Store because it says it's Unity 5.5 only.
can avoid resize cost for optimize.
After importing the asset from the AssetStore it tells me "The project uses obsolete API".
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
There is a bug in GameObject.Operate.cs line 94:
if ((parentTransform == null && childTransform == null) || (parentRectTransform == null))
"||" should be replaced with "&&"
if ((parentTransform == null && childTransform == null) && (parentRectTransform == null))
Maybe it's time to do this?
not clone, move to under parent
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.