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

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

11. [LayaAir3]3.3.0-beta.4已知新bug汇总 [ 72%]

... (typeof (param) === "function") complete = param; if (progress instanceof Handler) { let h = progress; progress = (value: number) => h.runWith(value); } // @ts-ignore return Scene._load(url, progress).then(scene => { scene.open(closeOther, param); if (complete instanceof Handler) complete.run...

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

12. Laya.Tween.to 有没有监听值的变化的方法? [ 71%]

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

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

13. 资源压缩成zip后加载的问题 [ 70%]

...loader,那就不用处理了。 Laya.loader.load("res/aaa.scene", Laya.Handler.create(null, (content)=>{console.log(content)})); Laya.loader.load("res/bbb.json", Laya.Handler.create(null, (content)=>{console.log(content)})); 2019-04-25 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...

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

14. 用了Sprite3D.instantiate方法,在iPhone6上性能降低了80% [ 66%]

...lone() as s3d;//s3d.instantiate(x.s3ds[id]); }   static loads3d(id, path, handler=null):void{   s3d.load(path, Laya.Handler.create(null, function(sp){ x.s3ds[id] = sp; if(handler)handler.loadeds3d(id, sp); })); }  我首先用loads3d方法加载所有的.lh文件,然后用Sprite3D.instantiate...

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

15. laya.ui.Dialog [ 63%]

...方向中心线的距离(以像素为单位)。 View  closeEffect : Handler 关闭对话框效果,可以设置一个效果代替默认的关闭效果,如果不想有任何效果,可以赋值为null 全局默认关闭效果可以通过manager.closeEffect修改 Dialog  closeHandler : Han...

来源: Laya2.0_api 发布时间: 20190513

16. TimeLineUI不存在的问题 [ 63%]

...执行onLoaded回调方法 Laya.loader.load("res/atlas/apes.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个UI实例 var plan = new ui.TimeLineUI(); //添加到舞台 Laya.stage.addChild(plan); //播放UI场景中的动画 plan.crashed.play(); }运行时发现ui变...

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

17. DialogManager 内部的方法能改成私有的吗? [ 63%]

...这样的方法?或求3D抛物线移动的方法或算法。 源代码中Handler中的setTo()方法 Laya的应用内支付方法调用 Laya.Scene.open打开的对话框中如何在关闭的时候调用父Scene中的方法 关于动画ani文件,编辑ani文件需不需要使用loadanimation方法...

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

18. laya.ui.MoreGame [ 63%]

...向中心线的距离(以像素为单位)。 View  clickCallBack : Handler图标点击回调MoreGame  closeCallBack : Handler关闭盒子回调MoreGame customRenderEnable : Boolean[write-only] 设置是否开启自定义渲染,只有开启自定义渲染,才能使用customRender函数...

来源: Laya2.0_api 发布时间: 20190513

19. Maximum call stack size exceeded [ 62%]

...影响后续流程     Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION);     }       onVersionLoaded() {     //激活大小图映射,加载小图的时候,如果发现小图在大图合集里面,则优...

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

20. 刚刚接触2天layaair,有几个问题请教。 [ 62%]

...也不影响后续流程 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); } onVersionLoaded() { //激活大小图映射,加载小图的时候,如果发现小图在大图合集里面,则优先加载大图合集...

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