Coder Social home page Coder Social logo

linq-to-gameobject-for-unity's Issues

filter PreviewMaterials

SampleSceneScript's Add.
.Where(.. && x.name != "PreviewMaterials")

(note: this solve is very very adhoc...)

OfComponent() generic Component constraint

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();

Add descendIntoChildren

In Descendants, stop search children option like Roslyn's DescendantNodes(Func<SyntaxNode, bool> descendIntoChildren).

Unity 5.5

I can't download this from the Asset Store because it says it's Unity 5.5 only.

Obsolete API

After importing the asset from the AssetStore it tells me "The project uses obsolete API".

Intellisense not working

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

Unable to Add() child from prefab

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))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.