mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix AnimationPlayer to use StringName instead of String
Co-Authored-By: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_queue">
|
||||
<return type="PackedStringArray" />
|
||||
<return type="StringName[]" />
|
||||
<description>
|
||||
Returns a list of the animation keys that are currently queued to play.
|
||||
</description>
|
||||
@@ -280,13 +280,13 @@
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="assigned_animation" type="String" setter="set_assigned_animation" getter="get_assigned_animation">
|
||||
<member name="assigned_animation" type="StringName" setter="set_assigned_animation" getter="get_assigned_animation">
|
||||
If playing, the current animation's key, otherwise, the animation last played. When set, this changes the animation, but will not play it unless already playing. See also [member current_animation].
|
||||
</member>
|
||||
<member name="autoplay" type="String" setter="set_autoplay" getter="get_autoplay" default="""">
|
||||
<member name="autoplay" type="StringName" setter="set_autoplay" getter="get_autoplay" default="&""">
|
||||
The key of the animation to play when the scene loads.
|
||||
</member>
|
||||
<member name="current_animation" type="String" setter="set_current_animation" getter="get_current_animation" default="""">
|
||||
<member name="current_animation" type="StringName" setter="set_current_animation" getter="get_current_animation" default="&""">
|
||||
The key of the currently playing animation. If no animation is playing, the property's value is an empty string. Changing this value does not restart the animation. See [method play] for more information on playing animations.
|
||||
[b]Note:[/b] While this property appears in the Inspector, it's not meant to be edited, and it's not saved in the scene. This property is mainly used to get the currently playing animation, and internally for animation playback tracks. For more information, see [Animation].
|
||||
</member>
|
||||
@@ -332,7 +332,7 @@
|
||||
</description>
|
||||
</signal>
|
||||
<signal name="current_animation_changed">
|
||||
<param index="0" name="name" type="String" />
|
||||
<param index="0" name="name" type="StringName" />
|
||||
<description>
|
||||
Emitted when [member current_animation] changes.
|
||||
</description>
|
||||
|
||||
Reference in New Issue
Block a user