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

大约有 988 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0107 秒)

121. laya.utils.Tween.to的第一个参数可以是个label? [ 75%]

...props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。          * @param    duration 花费的时间,单位毫秒。          * @param    ease 缓动类型,默认为匀速运动。    ...

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

122. 3D模型加载出错 [ 75%]

...aya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(null, function(sp){         //Laya.Sprite3D.load("res/layatest.lh",Laya.Handler.create(null, function(sp){             this.box=scene.addChild(sp);             this.box.transform.ro...

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

123. 组件生命周期,混乱 [ 75%]

...之后无法运行 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 自定义组件发布之后报:can not create:ScaleButton ,发布之前正常,发布前后代码也被更改了 我想自定义组件 ,引入layaeditor.d.ts直接编译,居...

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

124. 加载预制体json,返回值不统一 [ 75%]

...返回Prefab; 解决方式: Laya.loader.load("prefab/hero.json", Laya.Handler.create(this, function (obj) {             console.log('hero',obj);         }), null, Laya.Loader.PREFAB);         Laya.loader.create("prefab/WeiTiao.json", Laya.Handler.create(this, ...

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

125. 微信小游戏图片加载不出来 [ 75%]

...s/ui.atlas", type: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded)); Laya.loader.create("ui/BG/play-bg.png", Laya.Handler.create(this, this.onLoaded)); 在微信小游戏里面可以显示,但是实体机子上就无法显示"ui/BG/play-bg.png"这一张...

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

126. 2.0版API“loadImage”改了吗? [ 75%]

2.0版API“loadImage”改了吗? sp.loadImage(_img, 0, 0, 0, 0, Handler.create(this, function(){                 trace("complete!!");   为何没有complete出现??  另外,有没有1.0和2.0 API更新对照表? 2018-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

127. 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 [ 75%]

...现第二次加载到的资源是无效的 Laya.Sprite3D.load(path, Laya.Handler.create(this, this.loadCompleted));   public loadCompleted(sp:Laya.Sprite3D):void {     this._loaded = true;              let useObject:Laya.Sprite3D = sp.getChildAt(0) as Laya.Sprite3D; } 重...

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

128. Laya.Tween 的属性列表的key 不能是变量? [ 75%]

...ideArrow, { keyV: guideArrow[keyV] + 100 }, 1000, Laya.Ease.linearIn, Laya.Handler.create(this, handMove));  这样写是不行,请问一下想要实现这样的方法, 应该怎么写呢 ? 2018-08-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

129. 使用Handler 返回name 始终是 undefined [ 75%]

使用Handler 返回name 始终是 undefined public function RegDlg() { this.btn_submit.name = Dialog.SURE; this.closeHandler = Handler.create(this ,this.onClose, ["123"],false); } private function onClose(name:String):void{ if(name == Dialog.SURE){ var di:NormalDlg = new NormalDlg(); di.popupConte...

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

130. 请问特效播放的速率可以自定义吗? [ 75%]

... w1114367261 • 2018-04-11 16:27 Laya.loader.load("shadeY.part",Handler.create(this,onParticleLoaded),null,Loader.JSON); private function onParticleLoaded(settings:ParticleSetting):void { settings.minStartSize = 200; settings.minEndSize = 200; settings.maxStartSize = 200; settings.maxEndS...

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