We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v4.1.beta
Windows 10
here an error is generated like this example
This is solved by adding the @tool keyword is it possible to check if the Editor is running this line?
@tool
If so error text may suggest the tool keyword.
tool extends EditorPlugin var dialogue_editor_window_path = "res://addons/DialogueEditor/DialogueEditorWindow.tscn" func _enter_tree(): InputMap.add_action("open_dialogue_editor") var new_input_event = InputEventKey.new() new_input_event.set_scancode(KEY_Q) InputMap.action_add_event("open_dialogue_editor", new_input_event) func _exit_tree(): InputMap.erase_action("open_dialogue_editor") func _input(event): if event.is_action_pressed("open_dialogue_editor"): var dialogue_editor_window = load(dialogue_editor_window_path).instance() dialogue_editor_window.get_node("Button").connect("pressed",dialogue_editor_window,"_on_button_pressed") add_child(dialogue_editor_window)
extends Panel func _on_button_pressed(): queue_free()
not available
The text was updated successfully, but these errors were encountered:
We could make a list of classes that should be used with @tool and generate a warning if it is missing. I had this thought while working on #78178.
Sorry, something went wrong.
Was this resolved by #94511?
Looks like it. Then we should close this as a duplicate of #36592. I misunderstood this issue last time.
Closing per above comment.
No branches or pull requests
Godot version
v4.1.beta
System information
Windows 10
Issue description
here an error is generated like this example
This is solved by adding the
@tool
keyword is it possible to check if the Editor is running this line?If so error text may suggest the tool keyword.
Steps to reproduce
Minimal reproduction project
not available
The text was updated successfully, but these errors were encountered: