Replace mentions of Reference with RefCounted

This commit is contained in:
Quinn
2024-11-29 21:59:59 +10:00
committed by Max Hilbrunner
parent 43ef9a70ac
commit 4ba3e374cd
2 changed files with 2 additions and 2 deletions

View File

@@ -274,7 +274,7 @@ References:
Resources
----------
:ref:`Resource <class_resource>` inherits from Reference, so all resources
:ref:`Resource <class_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

View File

@@ -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.