From ef7dad0f4bef5be317a9a90e799bbb7f637ed25b Mon Sep 17 00:00:00 2001 From: Pixdigit Date: Wed, 26 Apr 2023 12:49:37 +0200 Subject: [PATCH] Replace legacy setget in tool tutorial (#7225) * Replace legacy setget in tool tutorial Replace reference to legacy setget keyword and replace it with the new setter style in the "Running Code in the Editor" tutorial. --------- Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> --- tutorials/plugins/running_code_in_the_editor.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/plugins/running_code_in_the_editor.rst b/tutorials/plugins/running_code_in_the_editor.rst index 4285afb96..cd762e176 100644 --- a/tutorials/plugins/running_code_in_the_editor.rst +++ b/tutorials/plugins/running_code_in_the_editor.rst @@ -180,8 +180,8 @@ run the game, it will spin counter-clockwise. Editing variables ----------------- -Add and export a variable speed to the script. The function set_speed after -``setget`` is executed with your input to change the variable. Modify +Add and export a variable speed to the script. To update the speed and also reset the rotation +angle add a setter ``set(new_speed)`` which is executed with the input from the inspector. Modify ``_process()`` to include the rotation speed. .. tabs::