大约有 73 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0035 秒)
...lotSkinByName(slotName:String, name:String)方法 源代码中Handler中的setTo()方法 laya里面有没有通过一个类的名字(字符串)来获取该类的方法?类似get class by name ts如何通过文件集加载的方法预加载声音文件,然后再调用 问题状态 最新活动: 2...
来源: Laya_社区 发布时间: 20170928
...豆蚕 let event = new Laya.Event() button.event(Laya.Event.CLICK, event.setTo(Laya.Event.CLICK, button, button)); 2019-05-21 1 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 可以用自定义事件来实现你说的功能。具体的用法可以参考下这个帖子:自定义...
来源: Laya_社区 发布时间: 20170815
...整个文件夹的图片,有什么好的方法么 源代码中Handler中的setTo()方法 问题状态 最新活动: 2017-11-28 11:09 浏览: 1038 关注: 2 人 Todo • 2017-11-28 11:26 就是怎样暂停缓动,怎么调用pause。 是的, 就是我写Laya.Tween.pause(xx) ,动画没有停止 yms...
来源: Laya_社区 发布时间: 20171128
...Key key keyCode keyLocation metaKey shiftKey stageX stageY touches Methods setTo stopPropagation isMouseEvent Constructors constructor new Event(): Event Defined in laya/events/Event.ts:195 Returns Event Properties button button: number = 0 Defined in laya/events/Event.ts:187 鼠标按键, 0:主...
来源: Laya3.0_api 发布时间: 20231115
...ue):Handler { if (_pool.length) return _pool.pop().setTo(caller, method, args, once); return new Handler(caller, method, args, once); } 看源码,这个参数应该写在回调方程 加,逗号的后面,这个参数不要直接...
来源: Laya_社区 发布时间: 20180621
...Point || (this._lastPoint=new Point()); this._lastPoint.setTo(Laya.stage.mouseX,Laya.stage.mouseY); Laya.timer.clear(this,this.tweenMove); Tween.clearTween(this); Laya.stage.once(/*laya.events.Event.MOUSE_UP*/"mouseup",this,this.onSt...
来源: Laya_社区 发布时间: 20201118
...实现遮罩效果 里边的示例运行报错 Uncaught TypeError: this.setTo is not a function(function () { const Loader = Laya.Loader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(this, on...
来源: Laya_社区 发布时间: 20180810
... recover():void 回收 Rectangle reset():Rectangle 重置 Rectangle setTo(x:Number, y:Number, width:Number, height:Number):Rectangle 将 Rectangle 的属性设置为指定值。 Rectangle toString():String 当前 Rectangle 对象的水平位置 x 和垂直位置 y 以及高度 width 和宽...
来源: Laya2.0_api 发布时间: 20190513
...rrentTarget=[object Object] game.js:116 target=[object Object] game.js:116 setTo=function (type,currentTarget,target){ this.type=type; this.currentTarget=currentTarget; this.target=target; return this; } game.js:116 stopPropagation=function (){ this._stoped=true; } */ } 2018-10-31 添加评论 免...
来源: Laya_社区 发布时间: 20181031
...,但是2.0 最新版 接口变了, Texture 的drawto public function setTo(bitmap:Texture2D = null, uv:Array = null, sourceWidth:Number = 0, sourceHeight:Number = 0):void { 变成了Textrue2d了, 像以前1.x版本Textrue 还能用htmlcanvas,现在不能用了。而且直接强传入,会...
来源: Laya_社区 发布时间: 20190624