Преглед на файлове

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 <[email protected]>
Pixdigit преди 2 години
родител
ревизия
ef7dad0f4b
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      tutorials/plugins/running_code_in_the_editor.rst

+ 2 - 2
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::