大约有 4,000 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0081 秒)
Laya_社区(3251) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(94) Laya3.0_文档(86) Laya2.0_api(9) laya_api(6)
...Laya.Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; this.sprite3D = scene.addChild(new Laya.Sprite3D()) as Laya.Sprite3D; //正方体 var box = this.sprite3D.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane())) as Laya.MeshSprite3D; this.box = box; box.transform.p...
来源: Laya_社区 发布时间: 20220815
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.h1 = Laya.Handler.create(this, this.loadPicComplete, null, true); Laya.loader.load("res/img/1.png", this.h1); } private loadPicComplete(): void { Laya.timer.once(2000, this, this.actT); } private actT(): void { this.h2 =...
来源: Laya_社区 发布时间: 20171221
...r.png", "../../res/legend/map.jpg"]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT); // 侦听加载失败 Laya.loader.on(Event.ERROR, this, onError); })(); function onAssetLoaded(texture) { // 使用texture console.log("加载...
来源: Laya_示例 发布时间: 20241002
...i constructor() { super(); this.once(Laya.Event.DISPLAY, this, this.onCreate); this.once(Laya.Event.UNDISPLAY, this, this.onDestroy); } /** * 加入场景 */ protected on...
来源: Laya_社区 发布时间: 20181114
...t\load.js 第299行, _dt() { var g = this.tips._graphics; g.clear(); g.fillText(this._tips[this.prei], -26, 0, this.fontstr, this.fc, "center"); g.fillText("(" + this.p + "%)", 1 / 2 * this._len[this....
来源: Laya_社区 发布时间: 20170518
...: var timeLine:TimeLine = new TimeLine(); timeLine.addLabel("turnup",0).to(this,{y:this.y + 20},20,null,0) .addLabel("turndown",0).to(this,{y:this.y - 40},20,null,0) .addLabel("turnup",0).to(this,{y:this.y + 400},20,null,0) .addLabel("turndown",0).to(this,{y:this.y - 40},20,null,0) .addLabel("...
来源: Laya_社区 发布时间: 20181016
...loader.load("res/cartoonCharacters/cartoonCharactors.json", Handler.create(this, this.createCharacters), null, Loader.ATLAS); } createCharacters() { characterGroup = []; for(let i = 0; i = 0; --i) { this.animateCharactor(characterGroup[i]); } } animateCharactor(charactor) { charactor.x += moveSpeed;...
来源: Laya2.0_示例 发布时间: 20241002
...undButton.y; Laya.stage.addChild(musicButton); soundButton.on(Event.CLICK, this, onPlaySound); musicButton.on(Event.CLICK, this, onPlayMusic); } function createButton(label) { var w = 110; var h = 40; var button = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); butt...
来源: Laya_示例 发布时间: 20241002
使用Laya.Handler.create在方法体内this关键词无效 附件 : --> 2019-10-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 缨 赞同来自: 首先检查你的外部那个Init函数的this,然后再...
来源: Laya_社区 发布时间: 20191021
...ort; let socket:Laya.Socket = new Laya.Socket(); socket.on(Laya.Event.OPEN,this,()=>{ console.log("connect success!"); }) socket.connectByUrl(url);点此查看Socket官方示例 2018-05-15 1 0 分享 微博 QZONE 微信 rabbit 赞同来自: 只要前端的,还是要前端和后端代码? 2018...
来源: Laya_社区 发布时间: 20180514