Skip to content

Commit 1aae788

Browse files
authored
Update README.md
1 parent 362235f commit 1aae788

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,23 @@ result // UIText component
5656
5757
var result = UQuery.SelectByPath<GameObject>("Canvas>Layout>ButtonGroup");
5858
result // GameObject 'ButtonGroup'
59+
60+
/*
61+
%root% |
62+
- Canvas |
63+
- Layout |
64+
- Header |
65+
- Title1
66+
- Header |
67+
- Title2
68+
- Header |
69+
- Title3
70+
- Header |
71+
- Title4
72+
*/
73+
74+
var result = UQuery.SelectByPath<UIText>("Canvas>Layout>Header:(2)>Title3");
75+
result // GameObject 'Title3'
5976
```
6077

6178

@@ -70,3 +87,4 @@ result // GameObject 'ButtonGroup'
7087
- [ ] Strong validation path format
7188
- [x] Additional exceptions types
7289
- [ ] Query cache system
90+
- [x] Access child (same names) by index

0 commit comments

Comments
 (0)