I’m engaged on a 2D recreation with a spatial node (a 3d node) inside a viewport.
Nodes throughout the viewport ought to be capable of detect consumer enter from what I can discover on-line, however for some purpose it does not appear to work for me.
My tree holds the viewport in a viewportcontainer. The node throughout the viewport handles the consequences of detection. In a standalone scene, the node detects mouse inputs with none issues.
The code of the spatial script:
extends Spatial
func _on_Area_input_event(digicam, occasion, place, regular, shape_idx):
if (occasion is InputEventMouseButton):
print(get_parent().identify)
Moreover, I made positive that:
Deal with Enter Domestically
throughout the viewport istrue
Disable Enter
in Gui throughout the viewport isfalse
Object Choosing
within the viewport isfalse
- The viewport container is just not blocked by another nodes