From d49e16c0c0bbf507adee43e865873f40c981fdc9 Mon Sep 17 00:00:00 2001 From: Loregret <31369647+Loregret@users.noreply.github.com> Date: Tue, 7 Mar 2023 14:03:28 +0300 Subject: [PATCH] Update "Reporting node..." segment Current code doesn't work with Godot 4.0 I added @ to export variables and changed update_configuration_warning() to new update_configuration_warnings(). --- tutorials/plugins/running_code_in_the_editor.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tutorials/plugins/running_code_in_the_editor.rst b/tutorials/plugins/running_code_in_the_editor.rst index 7249d6dd4..2378261d1 100644 --- a/tutorials/plugins/running_code_in_the_editor.rst +++ b/tutorials/plugins/running_code_in_the_editor.rst @@ -254,17 +254,17 @@ By default, the warning only updates when closing and reopening the scene. .. code-tab:: gdscript GDScript # Use setters to update the configuration warning automatically. - export var title = "": + @export var title = "": set(p_title): if p_title != title: title = p_title - update_configuration_warning() + update_configuration_warnings() - export var description = "": + @export var description = "": set(p_description): if p_description != description: description = p_description - update_configuration_warning() + update_configuration_warnings() func _get_configuration_warning():