Skip to content

Commit

Permalink
Animation: Document frame duration units in SpriteFrames
Browse files Browse the repository at this point in the history
  • Loading branch information
dalexeev committed Jun 16, 2024
1 parent 71699e0 commit 3c7b713
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/classes/SpriteFrames.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<param index="2" name="duration" type="float" default="1.0" />
<param index="3" name="at_position" type="int" default="-1" />
<description>
Adds a frame to the [param anim] animation. If [param at_position] is [code]-1[/code], the frame will be added to the end of the animation.
Adds a frame to the [param anim] animation. If [param at_position] is [code]-1[/code], the frame will be added to the end of the animation. [param duration] specifies the relative duration, see [method get_frame_duration] for details.
</description>
</method>
<method name="clear">
Expand Down Expand Up @@ -139,7 +139,7 @@
<param index="2" name="texture" type="Texture2D" />
<param index="3" name="duration" type="float" default="1.0" />
<description>
Sets the [param texture] and the [param duration] of the frame [param idx] in the [param anim] animation.
Sets the [param texture] and the [param duration] of the frame [param idx] in the [param anim] animation. [param duration] specifies the relative duration, see [method get_frame_duration] for details.
</description>
</method>
</methods>
Expand Down

0 comments on commit 3c7b713

Please sign in to comment.