大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0084 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...acket_iidiid = 4; } 通过 ProtoBuf.load("protocol.proto", this.onLoaded); function onLoaded(err:any, root:any):void{ if (err) throw err; // Obtain message types var msgDefine:any = = root.lookup("protocols.packetc2g_select_gate"); var newMessage:any = msgDefine.create(); } 然后发现里面的成...
来源: Laya_社区 发布时间: 20170914
...ng","images/scrollbar$bar.png"], Laya.Handler.create(this, panelContent)); function panelContent() { panel = new _this.Panel(); panel.size(1081, 507); panel.pos(153, 141); panel.zOrder = 21; panel.vScrollBarSkin = 'images/scrollbar.png'; panel.vScrollBar.elasticDistance = 100; Laya.stage.addChild(pa...
来源: Laya_社区 发布时间: 20180331
...样暂停缓动报错啊, Uncaught TypeError: Laya.Tween.pause is not a function
来源: Laya_社区 发布时间: 20171128
...ndler的使用 示例 list.mouseHandler=new Handler(this,onMouse); private function onMouse(e:Event,index:Number):void { // TODO Auto Generated method stub if(e.type==Event.CLICK) { trace("click"); } } 2016-12-02 3 2 分享 微博 QZONE 微信 sunkehappy 赞同来自: @cuixueying 感谢提供方案...
来源: Laya_社区 发布时间: 20161202
...Sprite.load(xxx,回调)--加载好使用spine或dragbones的文件 private function 回调(){ catSprite.showSkinByName("动作名") //最初使用这种方式显示 结果是图片乱跳 显示异常 请使用 catSprite.play("动作索引") //动作索引为 0-第一套 1-第二套类推。。。 ...
来源: Laya_社区 发布时间: 20180614
...: //Laya.__init([Media]); 另外视频destr __proto.destroy=function(detroyChildren){ (detroyChildren===void 0)&& (detroyChildren=true); _super.prototype.destroy.call(this,detroyChildren); // native会崩溃 // this...
来源: Laya_社区 发布时间: 20181207
缓存清除方法clearTextureRes Loader.clearTextureRes=function(url){ url=URL.formatURL(url); var arr=laya.net.Loader.getAtlas(url); var res=arr ? laya.net.Loader.getRes(arr[0]):laya.net.Loader.getRes(url); ...
来源: Laya_社区 发布时间: 20171213
...帧不再执行动作 SDK版本为1.7.17 以下为核心代码: function playAction(act:string):void { var animationclip:Laya.AnimationClip = this.animator.getClip(action); if(animationclip){ this.animator.play(act); } } 现象描述:角色正在挂机放...
来源: Laya_社区 发布时间: 20180828
...会提示laya.core.js:12752 Uncaught TypeError: node._setParent is not a function 具体代码如下: Laya.Sprite3D.load(url, Laya.Hander.create(this, this.onLoadComplete)) (不会报错) Laya.loader.create(url, Laya.Hander.create(this, this.onLoadComplete))(会报错) private onLoad...
来源: Laya_社区 发布时间: 20200313
...mPath getTransformActive setTransformActive Legend Object literal Variable Function Type alias Class Class with type parameter Constructor Method Enumeration Interface
来源: Laya3.0_api 发布时间: 20231115