Skip to content

Commit 62829b5

Browse files
committed
Update Variant documentation comment about class_name
1 parent d282e4f commit 62829b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/classes/Variant.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
# Note that Objects are their own special category.
4343
# To get the name of the underlying Object type, you need the `get_class()` method.
4444
print("foo is a(n) %s" % foo.get_class()) # inject the class name into a formatted string.
45-
# Note also that there is not yet any way to get a script's `class_name` string easily.
46-
# To fetch that value, you can use ProjectSettings.get_global_class_list().
45+
# Note that this does not get the script's `class_name` global identifier.
46+
# If the `class_name` is needed, use `foo.get_script().get_global_name()` instead.
4747
[/gdscript]
4848
[csharp]
4949
Variant foo = 2;

0 commit comments

Comments
 (0)