大约有 4,000 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0083 秒)
Laya_社区(3251) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(94) Laya3.0_文档(86) Laya2.0_api(9) laya_api(6)
...组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.assets = ["resources/res/ui/dialog (1).png", "resources/res/ui/close.png"]; Laya.loader.load(this.assets).then( ()=>{ this.onSkinLoadComplete(); } ); } private onSkinLoadComplete(e: any = null): void { this.dialog = new...
来源: Laya3.0_文档 发布时间: 20230303
... }),如果有 async(){ await xxxx }会报这个错误 TS2354: [31mThis syntax requires an imported helper but module 'tslib' cannot be found. 一、万年没修成功过的自定义导出类 自动添加Laya前缀问题 二、切换类库依旧报错 三、拖尾依然没提供重置...
来源: Laya_社区 发布时间: 20191017
IDE相关问题 this.animation.loadAtlas 加载失败 this.animation.loadAtlas 加载失败什么捕获并处理,还有获取改animation的内存大小 this.animation.loadAtlas(this.resUrl, Laya.Handler.create(this, this.loadCompleted, [completeFun]), this.resUrl); 2017-09-05 添加评论 免...
来源: Laya_社区 发布时间: 20170905
... __proto.getTileProperties=function(index,id,name){ if (this._tileProperties[index] && this._tileProperties[index][id]){ return this._tileProperties[index][id][name]; } return null; } import { ui } from ...
来源: Laya_社区 发布时间: 20190218
...ya.stage.scaleMode = Stage.SCALE_NOBORDER; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } createCantralRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } update...
来源: Laya2.0_示例 发布时间: 20241002
...aya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } createCantralRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } update...
来源: Laya2.0_示例 发布时间: 20241002
...除所有帧标签! */ __proto.removeLabel=function(label){ if (!label)this._labels=null; else if (this._labels){ for (var name in this._labels){ this._removeLabelFromList(this._labels[name],label); if(this._labels[name].length == 0){ delete this._labels[name]; } } } } ----------------------------...
来源: Laya_社区 发布时间: 20181105
....stage.height + padding * 2); Laya.loader.load(texturePath, Handler.create(this, onTextureLoaded)); })(); function onTextureLoaded() { maggotTexture = Laya.loader.getRes(texturePath); initMaggots(); Laya.timer.frameLoop(1, this, animate); } function initMaggots() { var maggotContainer; for (var i = ...
来源: Laya_示例 发布时间: 20241002
...时候动画会卡 上代码: _pro.startLoad = function() { this.loadLayer = new Lload(); this.big.addChild(this.loadLayer); var imgArr = ; imgArr.push({url:"cont/cpf1.jpg",type:Loader.IMAGE}); imgArr.push({url:"cont/cpr1.jpg",type:Loade...
来源: Laya_社区 发布时间: 20160815
...西在原生不应该会有这个问题才是的 比如说这个代码: this.hr.once(Event.COMPLETE, this, onHrCompleteHandler); this.hr.once(Event.ERROR , this ,onHrErrorHandler); this.hr.send($url, $data, $method, $responseType, $headers); private function onHrCompleteHandler():void { if(this.co...
来源: Laya_社区 发布时间: 20180528