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

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

71. Android小游戏加载不打包的图会卡资源 [ 68%]

...ao.png", type: Laya.Loader.IMAGE });   Laya.loader.load(this.assets, Laya.Handler.create(this, this.onAssetsLoaded) , Laya.Handler.create(this, this.progress, [], false));   在加载的时候ios的微信小游戏是没有问题的,但是到了Android微信客户端小游戏会卡资源,停进...

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

72. 播放声音异常 [ 67%]

...le.log("播放音效"); Laya.SoundManager.playSound("res/AK47.mp3", 1, new Handler(this, this.onComplete));     很简单的调用就崩溃了,麻烦看看,谢谢!!! 附件 : --> 2018-06-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

73. app 的预加载问题 [ 67%]

...res/atlas/common.json","type":Loader.ATLAS}, ]; Laya.loader.load(resarray, Handler.create(this, this.preloadLoaded), Handler.create(this, this.onProgress,null,false)); 这个时候这个资源是通过app本地加载还是网上加载的? 2.dcc 有之前安装到手机上的app (a版本),后...

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

74. 用LayaAir引擎解析Tiled Map地图(ActionScript-2D进阶篇(AS3)-扩展模块) [ 67%]

... import laya.maths.Rectangle; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class TiledMapDemo { private var tMap:TiledMap; public function TiledMapDemo() { //初始化舞台 Laya.init(Browser.width, Browser.height, WebGL); //创建TiledMap实例 tMap = new Ti...

来源: Laya2.0_文档 发布时间: 20210714

75. laya图片路径问题 [ 67%]

...od/f8.png", "/public/test/img/food/f9.png", ];    Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT);   这个样能加载。 但是 var roleAni = new Laya.Animation();  roleAni.loadImages();  roleAni.play();  Laya.stage.addCh...

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

76. 后台切换到前台的回调 [ 67%]

...少了。是我哪里设置有问题么 创建树Tree 该怎么回调mouseHandler 形参该传什么 Laya.Handler.create 回调 执行回调函数时报is not a function Laya.loader.create 进度回调函数执行两次 问题状态 最新活动: 2019-10-31 16:24 浏览: 878 关注: 2 人

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

77. 关于下拉列表的选择触发 [ 67%]

关于下拉列表的选择触发 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map....

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

78. 二次开发 异步回调没反应 [ 67%]

...没反应 ts: /**视频广告 */ public static showVideoAd(success: Laya.Handler, type: string): void { if (GameConfig.ins.isDev) { success.runWith(1); return; } var VGUtil = Laya.PlatformClass.createClass("com.szdn.game.fkzy.VGUtil"); VGUtil.callWithBack(back, "showVideoAd", type);  function back(...

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

79. TypeError: relativePath is undefined [ 67%]

....TiledMap; var Rectangle = Laya.Rectangle; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var tiledMap; var mLastMouseX = 0; var mLastMouseY = 0; var mX = 0; var mY = 0; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.c...

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

80. IPHONE机,游戏之前有声音的,现在safari和CHROME上没有声音,UC上有 [ 66%]

...式都播不出声音: Laya.SoundManager.playMusic("sounds/fish.mp3", 1, Handler.create(this, this.onComplete)); //Laya.SoundManager.playSound("sounds/fish.mp3", 1, Handler.create(this, this.onComplete),Laya.AudioSound); 后来在html里加了一个audio标签,看看原始的audio能不能播。...

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