大约有 3,291 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0091 秒)
... 首先打开LayaAir编辑器,点击左上角“文件”->“新建项目”选择as项目,点击创建,如图1 所示 图1 找到在工程目录下的src文件夹,右键点击文件夹,在弹出的菜单点击 “新建模板文件”->“新建ActionScript类文件...
来源: Laya_社区 发布时间: 20171219
...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
...边在html标签里面导入了 <script src='matter.js' loader='laya'></script> laya代码里可以通过Browser.window.Matter来获取这个对象是有 值的 但转微信小游戏后Browser.window.Matter就为undefined了 2018-04-28 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180428
...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
...题。 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
...; } 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
...件,版本是 Unity 5.6.0f3 (64-bit),在Unity 中选择 LayaAir3D -> Export Tool -> LayaAir Run,浏览器 Chrome。 单 uv 都没问题,只要场景当中出现一个多通道 uv 就会出现上述错误。 2018-09-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...
来源: Laya_社区 发布时间: 20180929
...博 QZONE 微信 156*****215 赞同来自: Laya.timer.frameLoop(1,this,()=>{ if(this.lastClientWidth!=Laya.Browser.clientWidth){ if(Laya.Browser.clientWidth>Laya.Browser.clientHeight){ ...
来源: Laya_社区 发布时间: 20190514
...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
...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