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

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

111. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 64%]

...法,AS/TS思路一样,请根据自己的需求进行修改即可!var Loader = laya.net.Loader; var Handler = laya.utils.Handler; var Event = laya.events.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //list赋值,先获得一个数据源数组 var arr = ; for (va...

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

112. 请问下为啥我的LayaNative在运行的时候,一直显示Layaair的动画在0%的进度无法跳过呢 [ 64%]

...ascript" src="zlib.min.js"></script> <script src='Main.max.js' loader='laya'></script> </body> </html> 然后我把MainActivity中的initEngine方法中的设置入口页面方法改成了mPlugin.game_plugin_set_option("gameUrl", "http://stand.alone.version/index_nat...

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

113. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 64%]

js环境下使用Loader加载图片在Sprite对象的.on函数无效 js环境下使用Loader加载图片在Sprite对象的.on函数无效 var tempnote = new Laya.Sprite(); 使用 tempnote.texture=Loader.getRes(tempjson.pic)后 tempnote.on函数不触发 使用tempnote.loadImage(tempjson.pic); 触...

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

114. 支付宝小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...毕,此方法只执行一次 onAwake(): void { //支付宝小游戏 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) La...

来源: Laya3.0_文档 发布时间: 20251010

115. 微信资源加载问题 [ 63%]

... 我加载几十张图片,图片在外网服务器上面,然后我用loader加载 Laya.loader.load(resArr, Laya.Handler.create(null, function () { var a = new Laya.Image('comp/bg.png') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) ...

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

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

...资源 this.assets.push({ url: "lobby/zhujiemian_ditiao.png", type: Laya.Loader.IMAGE });   Laya.loader.load(this.assets, Laya.Handler.create(this, this.onAssetsLoaded) , Laya.Handler.create(this, this.progress, [], false));   在加载的时候ios的微信小游戏是没有问题的,但是到...

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

117. unity制作的粒子特效加载失败 [ 62%]

...ya.core.js:711)     at ResInfo.__proto.event (laya.core.js:483)     at LoaderManager.__proto._endLoad (laya.core.js:13152)     at Loader.onLoaded (laya.core.js:13128)     at EventHandler.__proto.runWith (laya.core.js:711)     at Loader.__proto.event (laya.core.js:483)   在粒子中加了...

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

118. 每次进行预加载的时候都会重新加载图片 [ 61%]

...加载的时候都会重新加载图片 我用的语言是JS来写,用Laya.loader.load进行预加载,放数组url路径,在progress哪里做一个加载完成进度事件,其他参数默认原有的配置,甚至修改缓存为true ,强制加载为false,但是仍然没有效果 每次都...

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

119. 混淆 JS 后不支持()=>{}的回调? [ 61%]

...:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 Laya.loader.create 进度回调函数执行两次 打包百度小游戏不能播放声音?是api不支持 还是发生了改变 或者格式问题? Laya.Handler.create 回调 问题状态 最新活动: 2018-04-18 14:32 浏览:...

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

120. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 61%]

...s/layabox.png"); box.meshRender.material = material; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/L...

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