If I add a gui node to a parent node and then rotate that parent node (from code), it seems gui.pick_node won’t work on the child node anymore.
I did a quick test and it works fine. Can you describe your case in more detail?
Here’s my setup:
And the test code:
function init(self)
msg.post("#", "acquire_input_focus")
local n = gui.get_node("parent_box")
gui.set_rotation(n, vmath.vector3(0, 0, 45))
end
function on_input(self, action_id, action)
if action_id == hash("click") and action.pressed then
local n = gui.get_node("child_box")
if gui.pick_node(n, action.x, action.y) then
print("CLICK!")
end
end
end