• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)

121. Laya.loader.load 教程代码出错 [ 73%]

...          }             Laya.loader.load(arr,Handler.create(this,LoadComplated));         }         private function LoadComplated(e:*=null):void         {             Laya.stage.addChild(img);             img.on("click",this,OnIm...

来源: Laya_社区 发布时间: 20170918

122. [0]laya-zip让你的游戏加载速度提升350%!! [ 73%]

...ntion, only resource files in the level-1 directory are loaded Laya.loader.create([{ url: "xx.zip", type:"ZIP"}]) [/size][/code] 如果只需要加载zip包中的部分资源,或者资源路径在多级目录下。可以在constructParams中进行配置,来加载指定文件资源。[size=14][co...

来源: Laya_社区 发布时间: 20211227

123. dialog 自定义关闭效果,效果执行完,弹窗无法关闭 [ 73%]

...x 赞同来自: //关闭特效自己实现 this.closeEffect = Laya.Handler.create(this,this.onCloseEffect,null,true);   //具体的实现代码 _proto_.onCloseEffect = function(){ Laya.Tween.to(this,{ x:-100 //动画结束就关闭 },1000,null,Laya.Handler.create(this,this.close)); }   但是动...

来源: Laya_社区 发布时间: 20170809

124. 怎么清理掉 Sprite3D 相关的缓存资源 [ 73%]

...te3D 相关的缓存资源 通过 lh格式 生成的 Sprite3D, Laya.loader.create(_path, Handler.create(this,OnComplete),null,Sprite3D); 要怎么清理掉他的所有缓存资源? 附件 : --> 2018-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

来源: Laya_社区 发布时间: 20180517

125. 照着官方文档写的 Dialog 报错? [ 73%]

...bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype.onPreloaded = function () { this.initLoadData(); }; LoadResource.prototype.initLoadData = function () { var res_array = [ {url:"res/ui/dialog.png",type:Laya.Loader.IM...

来源: Laya_社区 发布时间: 20200924

126. LayaNative 2.8.0 加载的TTF字体不生效,附复现工程。 [ 73%]

...           Laya.loader.load("fonts/OPPOSANS-H.ttf", Laya.Handler.create(this, (success) => {             console.log("2.8.0 字体加载是否成功:", success);             Laya.Text.defaultFont = "OPPOSANS-H";         }), null, Laya.Loader.TTF)...

来源: Laya_社区 发布时间: 20201118

127. laya.d3.graphics.IndexBuffer3D [ 73%]

...se) 创建一个 IndexBuffer3D,不建议开发者使用并用IndexBuffer3D.create()代替 实例。 IndexBuffer3D  _bindForVAO():void[override] IndexBuffer3D  bind():Boolean[override] IndexBuffer3D  destroy():void[override] IndexBuffer3D  getData():Uint16Array 获取索引数据。 IndexBuff...

来源: Laya2.0_api 发布时间: 20190513

128. 3D粒子特效初始化卡顿 [ 73%]

...oupName:String = null; if(isGroup == true){ groupName = url; } Laya.loader.create(_path, Handler.create(this,OnComplete,null),null,null,null,1,true,groupName); }else{ var item:Sprite3D = Pool.getItem(_path); if(item != null){ //直接用缓存的 Instantiate(item); }else{ OnComplete(); } } } public ...

来源: Laya_社区 发布时间: 20180425

129. View嵌套Dialog组件 ? [ 73%]

... 能不能给个demo 我已经把代码贴进去了 还是提示 can not Create :Dialog 2018-04-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 不太明白你说的view里嵌套dialog是...

来源: Laya_社区 发布时间: 20180423

130. 2.3.0beta 各种bug [ 73%]

...  this._style === SpriteStyle.EMPTY && (this._style = SpriteStyle.create());             if( this._style == null){                 this._style = SpriteStyle.create()             }             return this._style;         }     core.js vivo下getJSON报错兼...

来源: Laya_社区 发布时间: 20191017