Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🗿🗿🗿 Unity GameObject query system

NotificationsYou must be signed in to change notification settings

0xF6/UQuery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library for querying unity gameobject

OpenUPM

📦 Install

openupm add com.ivysola.uquery

or paste this intomanifest.json

"com.ivysola.uquery":"https://github.com/0xF6/UQuery.git?path=src/",

📌 Usage

/* graph of game objects  %scene_root% |        - Canvas |            - Layout |                - Header |                    - Title | <UIText>*/varresult=UQuery.SelectByPath<UIText>("Canvas>Layout>Header>Title[UIText]");result// UIText componentvar result=UQuery.SelectByPath<GameObject>("Canvas>Layout>ButtonGroup");result// GameObject 'ButtonGroup'/*%root% |    - Canvas |        - Layout |            - Header |                - Title1            - Header |                - Title2            - Header |                - Title3            - Header |                - Title4*/var result=UQuery.SelectByPath<UIText>("Canvas>Layout>Header:(2)>Title3");result// GameObject 'Title3'

🧬 Roadmap

  • Light Documentation
  • Samples
  • Validate IL2CPP Target
  • Directives for MORELINQ & UNITY_LINQ
  • Support querying by tag\layout (?)
  • Aliases in Query Path
  • Strong validation path format
  • Additional exceptions types
  • Query cache system
  • Access child (same names) by index

⚙️ Unity Version Support

So, the code of this library uses C#8.0 version, upm puts the source code in its pure form, and unity compiles it with its internal compiler - so the minimum supported version of the package is2020.2.if you want to use this library on older versions of the engine, the compiled library (built in Plugins) can also work on version2019.* or you can useC# Custom compiler for set-up your 2019.* unity to you to compile C# 8.0 in packages asmdef.


[8]ページ先頭

©2009-2025 Movatter.jp