你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
发现
话题
全文搜索
登录
[]Laya.Tween.to 有没有监听值的变化的方法?
Laya.Tween.to 有没有监听值的变化的方法?
没有找到相关结果
已邀请:
与内容相关的链接
提交
2 个回复
Aar0n
赞同来自:
有 update 回调,你可以点源码进去看 是第几个参数。
Aar0n
赞同来自:
/**
* 缓动对象的props属性到目标值。
* @param target 目标对象(即将更改属性值的对象)。
* @param props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。
* @param duration 花费的时间,单位毫秒。
* @param ease 缓动类型,默认为匀速运动。
* @param complete 结束回调函数。
* @param delay 延迟执行时间。
* @param coverBefore 是否覆盖之前的缓动。
* @return 返回Tween对象。
*/
public function to(target:*, props:Object, duration:int, ease:Function = null, complete:Handler = null, delay:int = 0, coverBefore:Boolean = false):Tween {
return _create(target, props, duration, ease, complete, delay, coverBefore, true, false, true);
}
要回复问题请先
登录
发起人
阿琴
相关问题
两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里
请问有没有方法能够获取“鼠标是否处于按下状态”?
TextInput重写onFocus和onBlur事件监听不到
FD 宏编译时 出现 试图访问该方法时失败
LayaNative ios上js访问不到JSBridge类中的方法,请求官方帮助,
3D特效播放速度和结束监听
onOpen方法是位于哪个类下面?
用gulp监听,实现自动执行编译遇到的问题
如何监听visible事件
关于动画ani文件,编辑ani文件需不需要使用loadanimation方法加载?在最开始的加载吗?还有 我只加载动画使用的资源好想不可以?还有使用Laya.Loader的方式能不能加载ani文件?
Laya的应用内支付方法调用
问题状态
最新活动:
2018-06-21 11:38
浏览:
3266
关注:
2
人
商务合作
2 个回复
Aar0n
赞同来自:
Aar0n
赞同来自:
* 缓动对象的props属性到目标值。
* @param target 目标对象(即将更改属性值的对象)。
* @param props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。
* @param duration 花费的时间,单位毫秒。
* @param ease 缓动类型,默认为匀速运动。
* @param complete 结束回调函数。
* @param delay 延迟执行时间。
* @param coverBefore 是否覆盖之前的缓动。
* @return 返回Tween对象。
*/
public function to(target:*, props:Object, duration:int, ease:Function = null, complete:Handler = null, delay:int = 0, coverBefore:Boolean = false):Tween {
return _create(target, props, duration, ease, complete, delay, coverBefore, true, false, true);
}