An optimized string type for unique names.
[StringName]s are immutable strings designed for general-purpose representation of unique names (also called "string interning"). [StringName] ensures that only one instance of a given name exists (so two [StringName]s with the same value are the same object). Comparing them is much faster than with regular [String]s, because only the pointers are compared, not the whole strings.
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 [StringName] or the literal syntax [code]&"example"[/code].
See also [NodePath], which is a similar concept specifically designed to store pre-parsed node paths.
Constructs an empty [StringName].
Constructs a [StringName] as a copy of the given [StringName].
Creates a new [StringName] from the given [String]. [code]StringName("example")[/code] is equivalent to [code]&"example"[/code].
Returns the 32-bit hash value representing the [StringName]'s contents.