动画精灵3D¶
Inherits: SpriteBase3D < GeometryInstance < VisualInstance < Spatial < Node < Object
类别: 核心
简要说明¶
三维世界中的二维sprite节点,可以使用多个二维纹理进行动画。
描述¶
动画是使用 SpriteFrames 资源,可以通过spriteframes面板在编辑器中配置。
属性描述¶
String animation
违约 |
"Default" |
设定器 |
设置动画(值) |
吸气剂 |
获取动画() |
当前动画来自 frames
资源。如果此值更改,则 frame
计数器复位。
int frame
违约 |
0 |
设定器 |
设置帧(值) |
吸气剂 |
获取帧() |
显示的动画帧的索引。
SpriteFrames frames
设定器 |
设置sprite帧(值) |
吸气剂 |
获取精灵帧()。 |
这个 SpriteFrames 包含动画的资源。
bool playing
违约 |
假 |
如果 true
, the animation 正在播放。