From 6292c862983e2872f07dfe3ea4e3a0298c186da7 Mon Sep 17 00:00:00 2001 From: Quinn <3379314+quinnyo@users.noreply.github.com> Date: Fri, 29 Nov 2024 21:59:59 +1000 Subject: [PATCH] Replace mentions of Reference with RefCounted --- contributing/development/core_and_modules/object_class.rst | 2 +- tutorials/scripting/gdscript/gdscript_basics.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contributing/development/core_and_modules/object_class.rst b/contributing/development/core_and_modules/object_class.rst index e2afbdad761..ffa69908cbf 100644 --- a/contributing/development/core_and_modules/object_class.rst +++ b/contributing/development/core_and_modules/object_class.rst @@ -274,7 +274,7 @@ References: Resources ---------- -:ref:`Resource ` inherits from Reference, so all resources +:ref:`Resource ` inherits from RefCounted, so all resources are reference counted. Resources can optionally contain a path, which reference a file on disk. This can be set with ``resource.set_path(path)``, though this is normally done by the resource loader. No two different diff --git a/tutorials/scripting/gdscript/gdscript_basics.rst b/tutorials/scripting/gdscript/gdscript_basics.rst index 8c6947de20b..bd6ca5d9fc7 100644 --- a/tutorials/scripting/gdscript/gdscript_basics.rst +++ b/tutorials/scripting/gdscript/gdscript_basics.rst @@ -1035,7 +1035,7 @@ it will raise an error. Valid types are: - Built-in types (Array, Vector2, int, String, etc.). -- Engine classes (Node, Resource, Reference, etc.). +- Engine classes (Node, Resource, RefCounted, etc.). - Constant names if they contain a script resource (``MyScript`` if you declared ``const MyScript = preload("res://my_script.gd")``). - Other classes in the same script, respecting scope (``InnerClass.NestedClass`` if you declared ``class NestedClass`` inside the ``class InnerClass`` in the same scope). - Script classes declared with the ``class_name`` keyword.