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

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

221. [LayaAirIDE3]我新建工程发布问题 [ 56%]

...导出示例 export function main() {  // 使用 export 关键字     console.log("启动资源加载场景");     Laya.Scene.open("./Scenes/GameLoading.ls"); } 在web预览里面可以,怎么发布成web就不行了 2.png 是我的目录结构 1.png 是web编译后,运行结果 附件 : --...

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

222. 图集资源clearRes清除之后下次再用到load时加载失败 [ 56%]

....ATLAS }],Laya.Handler.create(this,this.Loa,null)); } private Loa():void { console.log("在又有意义有意义有意义有意义有意义有意义有意义有意义"); } public ClearImg(url:string):void { Laya.Loader.clearRes(url); } 2018-01-09 添加评论 免费帖 --> 分享 微博 QZONE 微信...

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

223. panel的实际高度如何获取 [ 56%]

...属性能得到这个高度 function GetViewHeight(panel:Laya.Component) { console.log("GetViewHeight:"+panel.height); if(panel.height>0) { return panel.height } if(!panel.parent) { return WINSIZE.height } let parent=panel.parent as Laya.Component; return GetViewHeight(parent)-panel.top...

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

224. Laya2.2问题,有没有遇到的? [ 56%]

... = true; this.onConfigLoaded(); } onVersionLoaded() { } onConfigLoaded() { console.log(123131313213); } } new Main();  }());   错误信息: Uncaught TypeError: window.wx.getFileSystemManager is not a function     at window.wxMiniGame (laya.wxmini.js:271)     at Function.__init__ (laya.core....

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

225. 预加载音频文件遇到的问题 [ 56%]

....mp3", 0, Laya.Handler.create(this, onComplete)); } function onComplete(){ console.log("播放完成"); } 运行能正常运行但是控制台提示 Resources already exist,is repeated loading: D:/html5yx/project_zz/myxfj/bin/res/sound/bloodstream_bg.mp3 请问这是怎么回事。   附件 : --> 2...

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

226. 用tiledmap导出的json文件为何加载不成功? [ 56%]

...), new Handler(this, completeHandler)); function completeHandler(params) { console.log("brj laya h5 加载完成.."); }   2017-09-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 建议...

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

227. iOS的conchMarket 如何新建新的对应关系 [ 56%]

...pe:"test"}; window.conchMarket.share(JSON.stringify(sData),function(data){ console.log(data); // TODO 数据处理. });   oc里怎么调用呢?     2018-01-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qi...

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

228. Uncaught Can not find class laya.ani.bone.Skeleton [ 56%]

Uncaught Can not find class laya.ani.bone.Skeleton 新建项目 console.log(Laya.Skeleton)为undefine  场景里放入.sk动画 运行报错Can not find class laya.ani.bone.Skeleton 附件 : --> 2020-05-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

229. 获取动态更新的文本内容 [ 56%]

...r.create(this, this.Onloaded), null, Laya.Loader.TEXT,0,true,null,true); //console.log(Laya.Loader.loadedMap); } 另外就是加载的时候,不缓存资源,就不能读取文本内容。 1 let event1=Laya.loader.load("eyeimf.txt", Laya.Handler.create(this, this.Onloaded), null, Laya.Loader.TEXT...

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

230. laya获取图片像素后重新设置回去带有透明像素的地方显示有问题 [ 55%]

...       let x = tex.bitmap.getPixels();              console.log("------------------------",x);                          tex.bitmap.setPixels(x);              let sp = new Laya.Sprite();             sp.texture = tex;    ...

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