大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0048 秒)
...Mode = "none"; Laya.stage.alignV = "middle"; Laya.stage.alignH = "center"; if (Laya.Browser.onPC) { Laya.stage.scaleMode = "showall"; } else { Laya.stage.scaleMode = "custom"; }这一步能让引擎自动适配宽度(不变形),剩下的高度部分需要自己处理 第三步、监听引...
来源: Laya_社区 发布时间: 20180404
...any).astar.search(this.graph, start, end, { closest: this.opts.closest }); if (_everyPath && _everyPath.length > 0) { getRealPosition(start, this._everyPath); } }); ``` > 通过3D世界的x,z换算出对应的网格索引,并且通过astar路径再转换为3D世界路径 ```typescript /** * 得...
来源: Laya2.0_文档 发布时间: 20210715
...); } move() { sp = new Laya.Sprite(); Laya.stage.addChild(sp); //画曲线 if(x<100){ x++; } sp.graphics.clear(); sp.graphics.drawCurves(10, 58, [x, 0, 19, -100, 39, 0], "#ff0000", 3); } } new Scene(); 附件 : --> 2019-05-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20190520
...Browser.window.astar.search(graph, start, end, { closest: opts.closest }); if (_everyPath && _everyPath.length > 0) { getRealPosition(start, _everyPath); } }); ``` > 通过3D世界的x,z换算出对应的网格索引,并且通过astar路径再转换为3D世界路径 ```typescript /** * 得到整...
来源: Laya2.0_文档 发布时间: 20210714
...ns( window.screen.orientation.angle, this.passThroughCamera.orientation ); if (combinedOrientation !== this.combinedOrientation) { this.combinedOrientation = combinedOrientation; this.gl.bufferData( Laya.WebGLContext.ARRAY_BUFFER, this.f32TextureCoords[this.combinedOrientation], Laya.WebGLContext.ST...
来源: Laya_社区 发布时间: 20180726
...("ludo_ufo_feixing", true); }); ufo.on(Laya.Event.LABEL, this, (e) => { if (e.name == "xiaoshi") { ufo.offAllCaller(this); // ufo.removeSelf(); } }); })); } genSpine(url, handler: Laya.Handler) { var templet = new Laya.SpineTemplet(Laya.SpineVersion.v4_0); templet.on(Laya.Event.COMPLETE, h...
来源: Laya_社区 发布时间: 20220530
....loader.getRes(this.name); this.texture = texture; } clearImage(): void{ if (this.name != "") { this.isShow = false; Laya.Loader.clearTextureRes(this.name); Laya.Loader.clearRes(this.name); this.name = ""; } } } 附件 : --> 2019-03-15 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20190315
... this.owner) } onTriggerEnter(other: any, self: any, contact: any): void { if (other.label === "cloud") { Laya.Tween.clearAll(this._sp) let effect: Laya.Animation = Laya.Pool.getItemByCreateFun("deathEffect", this.createEffect, this); effect.pos(this._sp.x, this._sp.y); this._sp.parent.addChild(effe...
来源: Laya_社区 发布时间: 20191019
..."=================="); } private function traceMsg(msg:String = ""):void { if ( msg != null ) { txt.text += msg + "\n"; txt.scrollY = txt.maxScrollY; } } } } 输出信息: ------------------------- 0 Chen 加载: res/json/config.json readJsonFinish - 加载成功: res/json/config.json ...运行到 J...
来源: Laya_社区 发布时间: 20180227
... Laya.HTMLCanvas let tex = htmlCanvas.getTexture() as Laya.RenderTexture2D if (tex) { let u8 = tex.getData(0, 0, tex.width, tex.height) let u = new Uint8Array(u8.length) let len = u8.length / 4 let i = 0 for (let x = len; x >= 0; x--) { for (let y = 0; y < 4; y++) { u[i * 4 + y] = u8[x * 4 + y...
来源: Laya_社区 发布时间: 20210911