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

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

1. Laya.Scene.open 中的complete参数如何取得场景实例? [ 100%]

...何取得场景实例? 我看了Laya.Scene.open中的参数: complete:Handler (default = null) — 打开完成回调,返回场景实例(可选)   那么我要怎么从这个handler里边得到打开场景实例呢: 以下是我写的typescript代码: class Main {     onConfigLoaded(...

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

2. Laya.Scene.open方法中的complete的handler不返回 [ 99%]

Laya.Scene.open方法中的complete的handler不返回 Laya.Scene.open方法中的complete的handler在IDE中调试正常,但在微信小游戏中不返回,请问是什么原因。 2019-02-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

3. Laya.Scene.open方法中的complete的handler在IDE中调试正常,但在微信小游戏中不返回,请问是什么原因。 [ 96%]

Laya.Scene.open方法中的complete的handler在IDE中调试正常,但在微信小游戏中不返回,请问是什么原因。 Laya.Scene.open方法中的complete的handler在IDE中调试正常,但在微信小游戏中不返回,请问是什么原因。 2019-02-20 添加评论 免费帖 --> ...

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

4. 针对2.0.0 beta5 setLoadingPage 做增强 [ 77%]

...Scene = scene Laya.Scene.setLoadingPage(scene) } /** * 打开场景 * otherHandler 执行时间小于 loadScene 使用此方法 * otherHandler 不会阻塞 loadScene * @param {String} url 要打开的场景 * @param {Promise} otherHandler 同时执行的其它事件 * @param {Boolean} closeOther 关...

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

5. 一个关于laya.display.scene不成熟的小建议 [ 76%]

... 建议把scene里的静态方法: static load(url: string, complete?: Handler, progress?: Handler): void; static open(url: string, closeOther?: boolean, param?: any, complete?: Handler, progress?: Handler): void; static close(url: string, name?: string): boolean; static closeAll(): void; static s...

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

6. ide编辑的2D场景加3D人物显示问题 [ 75%]

...请: 与内容相关的链接 提交 1 个回复 geyx 赞同来自: var handler : laya.utils.Handler = Laya.Handler.create(this, this.onGetStartScene); Laya.Scene.open("test/TestScene.scene", true, null, handler )在回调里加3D模型就显示正常了。 2020-01-15 0 0 分享 微博 QZO...

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

7. 背景音乐文件太大 播放延迟 [ 72%]

...aya.loader.load(['remote/music/' + this.soundUrl + '.mp3'], new Laya.Handler(this, () => {                 this.store.isDemo = true;                 Laya.Scene.open("scene/Home.scene")             }), new Laya.Handler(this, (value: number...

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

8. 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

9. 资源压缩成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

10. 用了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