summaryrefslogtreecommitdiffstats
path: root/doc/classes/Variant.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/Variant.xml')
-rw-r--r--doc/classes/Variant.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/Variant.xml b/doc/classes/Variant.xml
index eb837a4643..b420933285 100644
--- a/doc/classes/Variant.xml
+++ b/doc/classes/Variant.xml
@@ -42,8 +42,8 @@
# Note that Objects are their own special category.
# To get the name of the underlying Object type, you need the `get_class()` method.
print("foo is a(n) %s" % foo.get_class()) # inject the class name into a formatted string.
- # Note also that there is not yet any way to get a script's `class_name` string easily.
- # To fetch that value, you can use ProjectSettings.get_global_class_list().
+ # Note that this does not get the script's `class_name` global identifier.
+ # If the `class_name` is needed, use `foo.get_script().get_global_name()` instead.
[/gdscript]
[csharp]
Variant foo = 2;