Giter Club home page Giter Club logo

com.unity.goql's Introduction

Please note, this repository has been deprecated, GoQL is now included in Selection Groups.

GoQL: GameObject Query Language

GoQL provides a syntax and API for specifying criteria, and then searching the GameObject hierarchy for the set of gameobjects that match those criterua.

using Unity.GoQL;
var query = "\"*GameObject*\""; //matches all gameobjects that have "GameObject" in their name.
var goqlMachine = new GoQLExecutor();
var instructions = Parser.Parse(query);
var selection = goqlMachine.Execute(instructions);

The syntax is best illustrated with examples.

Select all root objects:

/

Select all objects who have a name beginning with "Quad":

"Quad*"

Select second audio source component in children of all objects who have a name beginning with "Quad":

"Quad*"/<t:AudioSource>[1]

Select all gameobjects that have a Transform and a AudioSource component:

<t:Transform, t:AudioSource>

Select the first 3 children of all objects that are a child of a renderer component and have "Audio" in their name:

<Renderer>/"*Audio*"[0:3]

From each object named "Cube", select children that have a name starting with "Quad", then select the last grandchildren that has an AudioComponent.

"Cube"/"Quad*"/<t:AudioSource>[-1]

Select all gamobjects that use the material "Skin":

<m:Skin>

com.unity.goql's People

Contributors

jschmidt42 avatar smnwttbr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

com.unity.goql's Issues

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.