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

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

321. 音乐文件能预加载吗 [ 57%]

... 可以的,加载type是Loader.SOUND Laya.loader.load("xxx/xxx/xxx.mp3", Handler.create(this, onLoaded),null,Loader.SOUND);   2018-04-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 apmhot 相关问题 2.0一不小心删了bin目录...

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

322. 如何获取Tween.to的进度 [ 57%]

...实现吗   这个updat 如何使 update property   public var update:Handler 更新回调,缓动数值发生变化时,回调变化的值 2017-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueyi...

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

323. 使js压缩工具报错 [ 57%]

...分享 微博 QZONE 微信 kylin 赞同来自: 第813行 Config.FunRestart=Handler.create(this,this.on重启); 定义的变量、函数名等,不要出现中文等非ASCII字符,变量的命名最好要符合规范。   LayaAirIDE里的压缩工具会分析代码,类似的中文命名的变...

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

324. list的render复问题 [ 57%]

...nder为item0,1,2,3,往下拖第五个item也叫item0, 通过list.selectHandler = new Laya.Handler(this, this._OnSelect); function _OnSelect(){ //选中的render上加个选中框, var selection = this.visualizeList.selection;         selection.addChild(this.m_CenterDiv.imgSelect); } ...

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

325. IDE创建动画调问题 [ 57%]

...); ani.pos(300,300); Laya.stage.addChild(ani); ani.loadAnimation("AAA.ani",Handler.create(this,onLoadedAni,[ani])); } private function onLoadedAni(ani:Animation):void { ani.play(0,true); trace(ani.frames); }在加载完成之后去获取! 2017-08-03 0 0 分享 微博 QZONE 微信 为什么被折...

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

326. Laya.loader.load 加载时长10秒,的progress 回调只会调一次,0.2就再也不会被调到了。为什么[ 57%]

...复 Monica - 知识达人 赞同来自: 加载进度的回调你是Handler.create吗?如果是的话需要设置create里边的最后一个参数为false 2017-09-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 185*****367 相...

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

327. 2d粒子旋转时大小也会随着改变 [ 57%]

...会随着改变 代码: Laya.loader.load("res/Particles/Tail.part", Laya.Handler.create(this, this.OnPariticleAssetsLoaded), null, Laya.Loader.JSON); OnPariticleAssetsLoaded(setting:Laya.ParticleSetting) { let sp = new Laya.Particle2D(setting); sp.pos(200, 200); sp.emitter.start(); sp.play(); Laya...

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

328. 位图加载回调不触发 [ 57%]

...发 let bitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont(url, Laya.Handler.create(this, this.loadFNTComplete, [url, bitmapFont])); 2.1.0之前的版本这样运行正常,升级到2.1.0beta版本后 loadFNTComplete未触发 2019-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

329. [LayaAir3]3.3.0-beta.4已知新bug汇总 [ 57%]

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

330. 背景音乐音效问题 [ 57%]

...09.mp3",type:Laya.Loader.SOUND}, } Laya.loader.load(fightLandlordRes, Laya.Handler.create(this, this.resLoaded)); Laya.SoundManager.playMusic("Lobby/Sound/BG309.mp3"); 2017-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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