pandemonium_engine/doc/classes/StringName.xml

25 lines
1.1 KiB
XML
Raw Normal View History

2022-03-24 01:22:45 +01:00
<?xml version="1.0" encoding="UTF-8" ?>
2024-02-25 10:26:26 +01:00
<class name="StringName" version="4.3">
2022-03-24 01:22:45 +01:00
<brief_description>
2023-09-06 20:49:07 +02:00
A built-in type for unique strings.
2022-03-24 01:22:45 +01:00
</brief_description>
<description>
2023-09-06 20:49:07 +02:00
[StringName]s are immutable strings designed for general-purpose representation of unique names (also called "string interning"). Two [StringName]s with the same value are the same object. Comparing them is extremely fast compared to regular [String]s.
You will usually just pass a [String] to methods expecting a [StringName] and it will be automatically converted, but you may occasionally want to construct a [StringName] ahead of time with the [StringName] constructor or, in GDScript, the literal syntax [code]@"example"[/code].
See also [NodePath], which is a similar concept specifically designed to store pre-parsed scene tree paths.
</description>
2022-03-24 01:22:45 +01:00
<tutorials>
</tutorials>
<methods>
<method name="StringName">
<return type="StringName" />
<argument index="0" name="from" type="String" />
<description>
2023-09-06 20:49:07 +02:00
Constructs a [StringName] as a copy of the given [StringName].
2022-03-24 01:22:45 +01:00
</description>
</method>
</methods>
<constants>
</constants>
</class>