大约有 1,758 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0062 秒)
Laya_社区(1080) Laya3.0_api(672) Laya2.0_文档(2) Laya_示例(1) Laya3.0_文档(1) Laya2.0_api(1) Laya2.0_示例(1)
...ue, true); //程序入口 Laya.init(375, 85 * 4); var WID = 375, HEI = 85; function RankListItem() { RankListItem.__super.call(this); this.size(WID, HEI); this.img = new Laya.Image(); this.addChild(this.img); this.setImg = function (src) { this.img.skin = src; } } Laya.class(RankListItem, "RankListI...
来源: Laya_社区 发布时间: 20180416
...完成回调 Returns Promise<void> off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删除...
来源: Laya3.0_api 发布时间: 20231115
...这样的注释 /** * //注释 * a.x(n, c); * **/ public function a.x(n,c):void{ } 翻译成JS之后空格被去掉了,就变成了 /** *//注释 * a.x(n, c); **/ public function a.x(n,c):void{ } 这样就导致了注释在“*//注释”这里就结束了。下面的 * a....
来源: Laya_社区 发布时间: 20170928
...s type: string Optional data: any Returns void callLater callLater(method: Function, args?: any[]): void Inherited from Node.callLater Defined in laya/display/Node.ts:621 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Pa...
来源: Laya3.0_api 发布时间: 20231115
...小游戏 es6中的 async/await 编译 es6时会被翻译成 yield 和 function*() 的实现方式 yield function*() 导致真机黑屏,开发者工具没问题。 laya2.2.0 只支持 es6 的 target 编译, 如果改为 target 为 es 编译,会出现 Class constructor XXX cannot be invoked w...
来源: Laya_社区 发布时间: 20191101
...ader.load("res/atlas/ui/boos.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.loadAnimation("test.ani"); // //添加到舞台 // Laya.stage.addChild(tl); // //播放Animation动画 // ...
来源: Laya_社区 发布时间: 20190708
...oto文件中import b.proto文件这种场景 在使用ProtoBuf.loadProto = function(proto, builder, filename)加载的时候的,参数 1 填入的是a.proto文件的内容,参数 2, 3如何填,不填的话 会报错“cannot determine import root” 附件 : --> 2017-01-18 添加评论 免...
来源: Laya_社区 发布时间: 20170118
...述了logo和loadingView的使用,demo里面有 window.onLayaInitError=function(e) { console.log("onLayaInitError error=" + e); alert("加载游戏失败,可能由于您的网络不稳定,请退出重进"); }类似的 onLayaInitError 的,还有其他事件或者属性可以用吗? 2018-03...
来源: Laya_社区 发布时间: 20180321
... // 压缩js gulp.task("compressJs", ["compressJson"], function () { if (config.compressJs) { return gulp.src(config.compressJsFilter, { base: releaseDir }) .pipe(sourcemaps.init({loadMaps:true})) .pipe(uglify({ mangle: { keep_fnames:true } })) .pipe(sourcemaps.write(releaseDir +...
来源: Laya_社区 发布时间: 20190528
...来自: 我这里只有 代码 和背景音乐 //播放背景音乐 public function gameSoundPlay():void { SoundManager.playMusic("GameSound/bgSound.mp3", 0); } //音量调节 public function yyHSliderChanged(parm):void { SoundManager.setMusicVolume(parm/100); } bgSound.rar 2018-03-30 0 7 ...
来源: Laya_社区 发布时间: 20180330