大约有 1,071 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)
...te(this, function () { var _getRes = Laya.loader.getRes('bg-toolbar.png'); console.log(_getRes); }));然后log出来是undefined的,请问如何破?还有,对于图集的存放位置有什么要求吗(我不是用ide开发的,只是使用ide来打包图集) 2017-02-23 添加评论 免费...
来源: Laya_社区 发布时间: 20170223
....ts', onwarn:(waring,warn)=>{ if(waring.code == "CIRCULAR_DEPENDENCY"){ console.log("warnning Circular dependency:"); console.log(waring); } }, treeshake: false, //建议忽略 plugins: [ typescript({ [b]cacheRoot:workSpaceDir + "/.rpt2_cache", [/b] tsconfig:workSpaceDir + "/tsconfig.json", check...
来源: Laya_社区 发布时间: 20200607
...onLoaded方法里面 写一点测试代码 如下 function onLoaded(){ console.log("onLoaded"); //实例化RunGame // var runGame = new RunGame(); // Laya.stage.addChild(runGame); var sp = new laya.display.Sprite(); sp.x = 100; sp.y = 100; var texture = Laya.loader.getRes('player/chara_01.png'); ...
来源: Laya_社区 发布时间: 20160801
...ya.Event.STOPPED, this, this.play) this.play(); } private onError(): void{ console.log("parse error"); } private play(): void { console.log("1111111111"); if(++this.index >= this.skeleton.getAnimNum()) { this.index = 0 } this.skeleton.play(this.index, false, true) } } ``` 具体效果大家可以在...
来源: Laya2.0_文档 发布时间: 20210715
...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
...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
...真机调试时JS中打印的信息会在DevTools里面输出两次 使用console.log打印数据,在开发机的真机调试页面devtools://devtools/bundled/inspector.html中的Console面板中可见输出了2次。然而在C++代码中LOGI出的内容则不会有此问题。不知对此有无...
来源: Laya_社区 发布时间: 20230823
...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_示例 发布时间: 20251130
...pe: Laya.Loader.FONT }], Handler.create(this, () => { console.log('bitmapFont loaded'); this.onFontLoaded(); }), Handler.create(this, (progress) => { console.log('bitmapFont loading', progress); }...
来源: Laya_社区 发布时间: 20190221
...件 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