getting sibling/parent objects #297
-
So I'm writing a custom component that will allow tiles in a level (from Getting the children objects of the level is easy as pie, it's just If I only have a reference to a particular tile object, how would I find all of the siblings (or the tile's parent object, if that makes it any easier)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can use the query function, which is a more powerful get() function, with lots of functions query({ |
Beta Was this translation helpful? Give feedback.
You can use the query function, which is a more powerful get() function, with lots of functions
https://kaplayjs.com/doc/QueryOpt/
query({
hierarchy: "siblings"
})