mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
Inspector plugin tutorial: update PackedScene.instance() ref
I noticed that the tutorial still says `instance()` instead of `instantiate()`, so I changed it to match the 4.x method name.
(cherry picked from commit ef828fb837)
This commit is contained in:
@@ -39,7 +39,7 @@ you should remove the instance you have added by calling
|
||||
``remove_inspector_plugin()``.
|
||||
|
||||
.. note:: Here, you are loading a script and not a packed scene. Therefore you
|
||||
should use ``new()`` instead of ``instance()``.
|
||||
should use ``new()`` instead of ``instantiate()``.
|
||||
|
||||
.. tabs::
|
||||
.. code-tab:: gdscript GDScript
|
||||
|
||||
Reference in New Issue
Block a user