Godot Version
<4.2.2>
Question
<selection doesn’t work on generated object. basically, event.is_action_pressed() doesn’t detect anything. i have object (cap) and it has selection area. and it works unless it’s in inventory.>
<4.2.2>
<selection doesn’t work on generated object. basically, event.is_action_pressed() doesn’t detect anything. i have object (cap) and it has selection area. and it works unless it’s in inventory.>
Can you show, where you instance your cap-scene?
first in global (autoload script) when object is collected, .tscn is added to array. than in inventory it’s passed to a Panel (slot) and there it’s instance is added as a child
So you are testing if the mouse is pressed?
yeah, in selection area in _input_event() i put print() in the begining but with instanced object it doesn’t detect anything
Its possible that the panel or a other ui-node catches the input, before your selection-area
yeah! i guess the slot itself is blocking it! but how to fix this???
i use this:
the solution is: check Mouse.Filter to Ignore
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.