如何在 UiObject 步骤和 UiObject2 速度之间转换?

问题描述

从官方文档来看,UiObject 使用 steps 来定义速度,而 UiObject2 使用 speed 代替。他们两个之间是否存在诸如steps = 2 * speed之类的关系?

UiObject

Indicates the number of injected move steps into the system.
Steps are injected about 5ms apart.
So a 100 steps may take about 1/2 second to complete.

UiObejct2

The speed at which to perform this gesture in pixels per second.

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)