大约有 965 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0067 秒)
... { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public static HEI: number = 85; private img: Image; constructor(...
来源: Laya2.0_示例 发布时间: 20241002
...onError); this.mFactory.loadAni(this.mAniPath); } private onError():void { console.log("error"); } private parseComplete():void { //创建模式为1,可以启用换装 this.mArmature = this.mFactory.buildArmature(1); this.mArmature.x = this.mStartX; this.mArmature.y = this.mStartY; this.mArmature....
来源: Laya2.0_示例 发布时间: 20241002
... { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public static HEI: number = 85; private img: Image; constructor(...
来源: Laya_示例 发布时间: 20241002
...onError); this.mFactory.loadAni(this.mAniPath); } private onError():void { console.log("error"); } private parseComplete():void { //创建模式为1,可以启用换装 this.mArmature =this.mFactory.buildArmature(1); this.mArmature.x = this.mStartX; this.mArmature.y = this.mStartY; //mArmature.scal...
来源: Laya2.0_示例 发布时间: 20241002
... 微信 cuixu_xucui 赞同来自: 还是内存爆炸呀 if(this._texture){ console.log("this._texture.destroy"); this._texture.destroy(); this._texture = null; } if(this._htmlC){ this._htmlC.destroy(); } this._htmlC = this.zoomBox.drawToCanvas(RouletteTableScene.ZOOM_W, RouletteTableScene.ZOOM_TARGE...
来源: Laya_社区 发布时间: 20170822
...yaMaxUI.ts" let fileContent = readFile(layaMaxUI_Path); // console.log("读取文件",fileContent) if (fileContent ) { fileContent = fileContent.replace(/Laya\.UICodeView/g,"UICodeView"); fs.writeFileSync(layaMaxUI_Path, fileCon...
来源: Laya_社区 发布时间: 20191017
... = div.contextWidth; if(div.contextWidth > 200) div.contextWidth = 200; console.log(div.contextWidth); paopao.y = gRoomView.chatBox.height; paopao.imgSayBg.height = div.contextHeight + 26; paopao.imgSayBg.width = div.contextWidth + 60; paopao.height = paopao.imgSayBg.height + 50; paopao.width = p...
来源: Laya_社区 发布时间: 20170911
...{ super(); } onTriggerEnter(): void { /* ……省略若干逻辑代码 */ console.log("触发器物理事件onTriggerEnter"); } onTriggerStay(): void { /* ……省略若干逻辑代码 */ console.log("触发器物理事件onTriggerStay"); } onTriggerExit(): void { /* ……省略若干逻辑代码...
来源: Laya2.0_文档 发布时间: 20210715
...ment) { case "left": console.log(this.text + " left"); if (isFF) { alignmentText = '<text text-anchor="start" dominant-baseline="middle" '; } else ...
来源: Laya_社区 发布时间: 20180824
...n onError(): void{ trace("parse error"); } private function play(): void { console.log("1111111111"); if(++this.index >= this.skeleton.getAnimNum()) { this.index = 0 } this.skeleton.play(this.index, false, true) } } ``` 具体效果大家可以在官网引擎事例中查看。https://layaair2.ldc2.l...
来源: Laya2.0_文档 发布时间: 20210715