diff options
author | Xavier Loh <xavier.loh.yz@gmail.com> | 2022-03-13 21:25:20 +0800 |
---|---|---|
committer | Xavier Loh <xavier.loh.yz@gmail.com> | 2022-03-13 22:53:24 +0800 |
commit | a0e720efb2fffd7869517f3d0348f54b09dc3385 (patch) | |
tree | 07f554c65427befea029213f4a895745161fcf01 /doc/classes/RenderingServer.xml | |
parent | f470979732513436124c01a465b22f948637b5fa (diff) |
Expose `RenderingServer::canvas_item_add_animation_slice` in GDScript
Diffstat (limited to 'doc/classes/RenderingServer.xml')
-rw-r--r-- | doc/classes/RenderingServer.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/classes/RenderingServer.xml b/doc/classes/RenderingServer.xml index 50990b5320..213dafa074 100644 --- a/doc/classes/RenderingServer.xml +++ b/doc/classes/RenderingServer.xml @@ -149,6 +149,17 @@ Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method. </description> </method> + <method name="canvas_item_add_animation_slice"> + <return type="void" /> + <argument index="0" name="item" type="RID" /> + <argument index="1" name="animation_length" type="float" /> + <argument index="2" name="slice_begin" type="float" /> + <argument index="3" name="slice_end" type="float" /> + <argument index="4" name="offset" type="float" default="0.0" /> + <description> + Subsequent drawing commands will be ignored unless they fall within the specified animation slice. This is a faster way to implement animations that loop on background rather than redrawing constantly. + </description> + </method> <method name="canvas_item_add_circle"> <return type="void" /> <argument index="0" name="item" type="RID" /> |