mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Update Variant documentation comment about class_name
This commit is contained in:
parent
d282e4f0e6
commit
62829b543e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user