Unhandled Input not firing

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Gus G

Hey, I have a question about _unhandled_input, it doesn’t seem to be working for me. Here’s my code:

func _unhandled_input(event):
    print("DIALOG INPUT")
    if event is InputEventKey:
	   if event.pressed and event.scancode == KEY_Z and not revealing_text:

scene tree

The script with the unhandled input override is on the Dialog Node2D. Maybe it has something to do with the Viewport? Any help would be great!

What is the code suppose to do?

Ertain | 2020-07-18 03:10