• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,546 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0077 秒)

421. LayaBox 出错啦,请把此信息截图给研发商 SimpleSingletonList [ 61%]

...t."; _add(element); element._setIndexInList(length++); } catch(err) { console.log("多点触控出了问题,强行异常处理:",err); } } /** * @private */ public function remove(element:ISingletonElement):void { try { var index:int = element._getIndexInList(); length--; if (inde...

来源: Laya_社区 发布时间: 20190618

422. 分享:关于自定义场景继承的实现 [ 61%]

...e base{ export class BaseScene extends Laya.Scene{ constructor(){ super(); console.log('BaseScene:我是基类BaseScene,我的子类是导出类,我的父类是场景类'); } } } 导出UI 导出后layaMaxUI.ts的内容如下/**This class is automatically generated by LayaAirIDE, please do not make...

来源: Laya_社区 发布时间: 20200827

423. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 61%]

...is.btn_register.on(Laya.Event.CLICK, this, this._onRegister); } catch(e) { console.log(e); } } /** * 点击注册 */ private async _onRegister() { // console.table(this._arrCheck); } /** * 检查注册自信是否正确 */ private _checkRegInfo(): boolean { // TODO 还没有写检查!!!!! if (!this....

来源: Laya_社区 发布时间: 20200410

424. UI-Tab [ 61%]

...elect); Laya.stage.addChild(tab); return tab; } function onSelect(index) { console.log("当前选择的标签页索引为 " + index); } })();module laya { import Stage = Laya.Stage; import Tab = Laya.Tab; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Tab { private skins: ...

来源: Laya_示例 发布时间: 20250224

425. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 61%]

...pe: Laya.Loader.FONT }], Handler.create(this, () => {             console.log('bitmapFont loaded');                          this.onFontLoaded();         }), Handler.create(this, (progress) => {             console.log('bitmapFont loading', progress);         }...

来源: Laya_社区 发布时间: 20190221

426. 骨骼动画进阶(JavaScript-2D进阶篇(JS)-动画进阶) [ 61%]

...件 templet.loadAni("res/spine/goblins/goblins.sk"); function onError() { console.log("parse error"); } function parseComplete() { //创建第一个动画 var skeleton0; //从动画模板创建动画播放对象 skeleton0=templet.buildArmature(0); skeleton0.pos(200,700); //切换动画皮肤 skeleto...

来源: Laya2.0_文档 发布时间: 20210715

427. UI-Tab [ 60%]

... this.onSelect); Laya.stage.addChild(tab); return tab; } onSelect(index) { console.log("当前选择的标签页索引为 " + index); } } new UI_Tab();module laya { import Stage = Laya.Stage; import Tab = Laya.Tab; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Tab { priva...

来源: Laya2.0_示例 发布时间: 20250224

428. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 60%]

...ar Stage=Laya.Stage; var WebGL=Laya.WebGL; var config=Config; (function(){ console.log("运行程序。"); Laya.init(1280,720,WebGL); //设置适配模式 Laya.stage.alignH=Stage.ALIGN_CENTER; Laya.stage.alignV=Stage.ALIGN_MIDDLE; Laya.stage.scaleMode="showall"; Laya.Stat.show(); //设置屏幕为...

来源: Laya_社区 发布时间: 20171207

429. UI-Slider [ 60%]

...ler(this, onChange); Laya.stage.addChild(vs); } function onChange(value) { console.log("滑块的位置:" + value); } })();module laya { import Stage = Laya.Stage; import HSlider = Laya.HSlider; import VSlider = Laya.VSlider; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class U...

来源: Laya_示例 发布时间: 20250224

430. Skeleton骨骼动画内存泄漏 [ 60%]

...enceCount); if (this.bitmap.referenceCount===0){ this.bitmap.destroy(); // console.log("texture2d destory"); } this.bitmap=null; } if (this.url && this===Laya.loader.getRes(this.url)) Laya.loader.clearRes(this.url); } }增加的代码是 if (this.bitmap.referenceCount===0){ this.bitmap.dest...

来源: Laya_社区 发布时间: 20190320