大约有 160 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0039 秒)
Laya_社区(126) Laya2.0_文档(11) Laya3.0_文档(5) Laya3.0_api(5) Laya2.0_示例(4) Laya_示例(4) Laya2.0_api(3) laya_api(2)
... 微博 QZONE 微信 liwen1590 赞同来自: error: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory <--- Last few GCs ---> [3456:03E0EAB0] 692136 ms: Mark-sweep 1079.4 (1184.3) -> 1079.0 (1184.3) MB, 1093.1 / 0.0 ms allocation failure GC in old...
来源: Laya_社区 发布时间: 20211102
...r rectangle. When true, it starts drawing from (0,0) of the render texture and subtracts the offset of the cache rectangle. When false, it keeps the sprite's original relative position for drawing. * @param flipY Optional. If true, the texture will be flipped vertical. Default is false. * @param cle...
来源: Laya_社区 发布时间: 20250827
...见https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Orientation_and_motion_data_explained。 info: RotationInfo类型参数,保存设备的旋转值。 浏览器兼容性参见:http://caniuse.com/#search=deviceorientation Hierarchy EventDispatcher Gyroscope Index Constructors constructo...
来源: Laya3.0_api 发布时间: 20231115
...!== 0) { throw new Error("At least two points (four numbers) are required, and the total number of values must be even"); } this.points = points; } private static distance(x1: number, y1: number, x2: number, y2: number): number { let dx = x2-x1; let dy = y2-y1; return Math.sqrt(dx*dx+dy*dy); } priva...
来源: Laya_社区 发布时间: 20241008
...aair.game.browser.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 这种错误。 apk打包时无论我选择是否是单机版(非单机版已经把index.html和相关资源放到了一个可访问的http服务器了),最终运行都是上面的错误 请问下...
来源: Laya_社区 发布时间: 20160920
... this.loadFont(); } loadFont() { const BitmapFont = Laya.BitmapFont, Handler = Laya.Handler; Laya.loader.load([{ url: ['res/bitmapFont/test.fnt'], type: Laya.Loader.FONT }], Handler.create(this, () => { console.log('bitmapFont loaded'); ...
来源: Laya_社区 发布时间: 20190225
... occurred; use the non-minified dev environment for the full error message and additional helpful warnings. jacksing888 • 2017-03-21 11:19 这里更加合理的做法应该是 自己封装一个函数 去调用 才是比较合理的 尽量少去污染全局的东西 cuixueying • 2017-03-21 11:19...
来源: Laya_社区 发布时间: 20170321
...型,否则不会把json认为是SPINE资源 Laya.loader.load("girl2/mix-and-match-pro.json", Laya.Loader.SPINE).then(() => { // 添加Spine渲染器组件到精灵节点上 this.spine = this.owner.addComponent(Laya.Spine2DRenderNode); this.spine.source = "girl2/mix-and-match-pro.json"; // 设...
来源: Laya3.0_文档 发布时间: 20251128
...定文件资源。[size=14][code]// Loads the file at the specified path and uses it Laya.loader.create([{ url: "xx.zip", type:"ZIP",constructParams:["xx/xxx1.lh","xx/xxx2.lh"]}], Laya.Handler.create(this, () => { let player1 = Laya.loader.getRes("xx/xxx1.lh").clone(); let player2 = Laya.loader.g...
来源: Laya_社区 发布时间: 20211227
... this.width + ' ' + this.height + '" '; // set svg width and height data += 'width="' + this.width + '" height="' + this.height + '">'; data += '<defs>'; // set gradient data += '<linearGradient id=...
来源: Laya_社区 发布时间: 20180824