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

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

1141. 【分享】LayaAir As工程 编译新建类的方法 [ 63%]

...          首先打开LayaAir编辑器,点击左上角“文件”->“新建项目”选择as项目,点击创建,如图1 所示 图1 找到在工程目录下的src文件夹,右键点击文件夹,在弹出的菜单点击 “新建模板文件”->“新建ActionScript类文件...

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

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

...ader.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复现工...

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

1143. Laya转小游戏导入的JS文件怎么访问 [ 63%]

...边在html标签里面导入了 <script src='matter.js' loader='laya'></script> laya代码里可以通过Browser.window.Matter来获取这个对象是有 值的 但转微信小游戏后Browser.window.Matter就为undefined了 2018-04-28 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

1144. 发布微信小游戏json格式问题 [ 63%]

...Unexpected token in JSON at position 27     at JSON.parse (<anonymous>)     at Function.MiniAdpter.getJson (http://127.0.0.1:9973/game/code.js:20980:15)     at Function.MiniLoader.onReadNativeCallBack (http://127.0.0.1:9973/game/code.js:21386:25)     at Handler.__proto.runWith (http://...

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

1145. laya.wxmini.js里面window对象的属性window是只读的,不能给他赋值。 [ 63%]

...题。 Cannot assign to read only property 'window' of object '#<Window>' TypeError: Cannot assign to read only property 'window' of object '#<Window>'   附件 : --> 2018-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

1146. js继承模式 [ 63%]

...; } Class.prototype.loop = function() { for (var i = 0; i < this.img.length; i++) { this.img[i].y += 1; if (this.img[i].y >= 852) { this.img[i].y = -852; } } }; return Class; }()); new function() { var className = 'BackGround'; window[className] = (function() { Laya.class(Class, className, Lay...

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

1147. 从Unity导出场景时,多通道UV会导致错误:Uncaught Error: LoadModelV03: unknown vertexDeclaration. [ 63%]

...件,版本是 Unity 5.6.0f3 (64-bit),在Unity 中选择 LayaAir3D -> Export Tool -> LayaAir Run,浏览器 Chrome。 单 uv 都没问题,只要场景当中出现一个多通道 uv 就会出现上述错误。 2018-09-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...

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

1148. 游戏铺满固定大小容器,火狐和谷歌正常,edge会有滚动条? [ 63%]

...博 QZONE 微信 156*****215 赞同来自: Laya.timer.frameLoop(1,this,()=>{                if(this.lastClientWidth!=Laya.Browser.clientWidth){                     if(Laya.Browser.clientWidth>Laya.Browser.clientHeight){                     ...

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

1149. 一个修复Laya1.8.3中的粒子销毁时报错黑屏问题的思路 [ 63%]

...Laya.Buffer._enableAtributes; if (attrs) { attrs.forEach((buffer, index) => { if (buffer && buffer.deleted) { Laya.WebGL.mainContext.disableVertexAttribArray(index); attrs[index] = null; } }); while (attrs.length > 0 && attrs[attrs.length - 1] == null) attrs.pop(); } }; let $bu...

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

1150. setSubPixels画布擦除不掉 [ 63%]

...this.bUrl); let x:number = this._testStatus == true ? 0:50;//Math.random()>0.5 ? 50 : 0; this._testStatus = !this._testStatus; // let canvasInfo = this.getCanvasWidthHeight(); let ctx = new Laya.Context(); // let w = canvasInfo.w//tex.width; // let h = canvasInfo.h//tex.height; let w = tex.width;...

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