I have two GameObject in collection. I need to get the id of the GameObject on which clicked.
The GUI has a function gui.get_node and gui.pick_node. How can I pick a GameObject on which clicked?
File: test_input.script
function init(self)
msg.post(".", “acquire_input_focus”)
end
function on_input(self, action_id, action)
if action_id == hash(“touch”) then
print(go.get_id())
end
end