ios - Is the order of SKNode.nodesAtPoint guaranteed? -
sknode
has method nodesatpoint
returns array of children nodes intersect given point. order of elements in such array deterministic (e.g. drawing order)?
i not find answer in documentation, answer "no", verify.
nope, sprite kit not take account z-position when traversing node-tree (definitely performance reasons). can see adding few nodes scene in-order , changing z-positions. order based on position of node within node-tree, rather z-position.
Comments
Post a Comment