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

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

71. 进度条组件 · LayaAir3.0文档 · LAYABOX [ 61%]

进度条组件(ProgressBar)一、通过LayaAir IDE创建ProgressBar组件1.1 创建ProgressBar1.2 ProgressBar属性1.3 脚本控制ProgressBar二、通过代码创建ProgressBar进度条组件(ProgressBar) 一、通过LayaAir IDE创建ProgressBar组件 ProgressBar经常被用于显示游...

来源: Laya3.0_文档 发布时间: 20230921

72. 分享一个Shader版的CoolDown实现 [ 60%]

... alpha遮罩   用法: var texture: Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); --------------------...

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

73. image.drawToCanvas方法获取的一直是空的png [ 60%]

...帮助, FD 宏编译时 出现 试图访问该方法时失败 load方法的progress回调进的次数太少了。是我哪里设置有问题么 Laya.Media方法调用失败 关于@prop {name:Tab,type:Node} 我觉得好麻烦啊 ,请问一下有别的方法吗 源代码中Handler中的setTo()方法...

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

74. laya微信小游戏加载外部素材失败 急急急 [ 60%]

..., onComplete), Laya.Handler.create(this, onLoading)); } function onLoading(progress){ console.log("加载进度: " + progress); } function onComplete(){ console.log('onComplete'); wx.showModal({ title: '提示', content: 'onComplete', }) } initLaya(); 3d_demo.zip 2018-04-26 0 0 分享 微博 QZONE ...

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

75. Timer类有没有AS3那样的reset();stop();start()方法呢? [ 57%]

...还有使用Laya.Loader的方式能不能加载ani文件? load方法的progress回调进的次数太少了。是我哪里设置有问题么 ts如何通过文件集加载的方法预加载声音文件,然后再调用 Laya的应用内支付方法调用 手游的时候一般会对堆栈信息进行...

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

76. 二次开发 异步回调没反应 [ 57%]

... http 请求 once 的 回调参数,如何传递和接收? load方法的progress回调进的次数太少了。是我哪里设置有问题么 (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 如何定义动画播放过某帧后的回调...

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

77. 抖音小游戏 · LayaAir3.0文档 · LAYABOX [ 56%]

...: void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.pr...

来源: Laya3.0_文档 发布时间: 20240528

78. 微信小游戏 · LayaAir3.0文档 · LAYABOX [ 55%]

...: void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.pr...

来源: Laya3.0_文档 发布时间: 20240528

79. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 51%]

...ata);         this._customParse=false;         this.event("progress",1);         this.event("complete",(this.data instanceof Array)? [this.data] :this.data);     } 上面这里直接判断失败,走了false 具体见附件。   望解决 附件 : --> WX3D.rar laya3D工...

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

80. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 51%]

...ew Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会返回一个data this.http.once(Laya.Event.ERROR,this,this.onError); //数据传输失...

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