Api

AnimationutilsSetimageanimation

OpenAPI > AnimationUtils > setImageAnimation

OpenAPI.AnimationUtils.setImageAnimation() method

设置图像动画

Signature:

static setImageAnimation(taskName: string | null, object: UIStandAvatar, aniID: number, complete?: Callback): void;

Parameters

Parameter

Type

Description

taskName

string | null

任务名称, 如果为空则不使用SyncTask

object

UIStandAvatar

图像

aniID

number

动画编号

complete

Callback

(Optional) 回调

void

Example

OpenAPI.AnimationUtils.setImageAnimation('taskName', object, 1, Callback.New(() => {
  console.log('动画播放完成')
}, this))

Copyright © 2021 - 2025