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

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

421. 2.0新特性常见问题(TypeScript-常见问题汇总(持续更新)-2.0常见问题) [ 66%]

...用预设 ``` 下面采用伪代码: 先声明一个预设变量 {Laya.loader.create("prefab/预设名字.json",Handler.create(this,onComplete)); } private function onComplete(obj:Object):Void{ 一个预设变量.json = ojb 一个sprite = Pool.getItemByCreateFun("自己起一个名字", this.一...

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

422. 使用IDE打包图集工具出来的atlas,调用clearRes无法卸载资源 [ 66%]

...的atlas,调用clearRes无法卸载资源 加载时时这样调用 Laya.loader.load("res/MainBlood.atlas", Laya.Handler.create(this, this.onAtlasLoaded), null, Laya.Loader.ATLAS); 卸载时这样 Laya.loader.clearRes("res/MainBlood.atlas");在Laya.Loader.loadedMap里查找是没有了,但是统...

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

423. 资源路径问题 [ 66%]

...种文件放不同的图片。。发现加载图片时加载不了。 Laya.loader.load(["res/atlas/img/hall.json"],Laya.Handler.create(this, onLoaded),null,Laya.Loader.ATLAS);无法加载。。。怎么回事 2017-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

424. canvas下资源清理的问题 [ 66%]

...aya.display.Stage;     import laya.events.Event;     import laya.net.Loader;     import laya.ui.Button;     import laya.utils.Handler;     import laya.utils.Stat;          import ui.TaskUI;          import view.TestView;          public class LayaUISample {      ...

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

425. handler携带的参数在回调函数里面怎么获取? [ 65%]

...请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: Laya.loader.load("res/atlas/war/hero.atlas", Handler.create(this, this.onLoad), null, Loader.ATLAS); 什么意思,, 2018-03-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

426. as3.0语言下2dmatter.js物理引擎的配置 [ 65%]

... 微博 QZONE 微信 131*****809 赞同来自: <script scr='matter.js' loader='laya'></script> <script scr = 'LayaRender.js' loader='laya'></script> <script src='LayaSample.max.js' loader='laya'></script>引用了呀 2018-07-16 0 1 分享 微博 QZONE 微信 为...

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

427. 请问laya里如何解析json,似乎和AS3的不太一样。 [ 65%]

...自: SONIC3D 、sevennqi public function BBB() { Laya.init(550,400); Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("res/atlas/comp.json"); }JSON的解析和AS3的是一样的   2016-10-2...

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

428. 微信上测试加载服务器资源 [ 65%]

...上测试加载服务器资源 URL.basePath = "http://212.xx.xx.xx/"; Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,loadComplete)); loadComplete(){显示自己的ui}; 项目设置选择不校验合法域名。(我没有配置域名,用IP可以吗?) 发现comp.atlas是加载下...

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

429. 微信小游戏设置网络动态加载无法显示 [ 65%]

...3B%3B var asset = []; asset.push({ url : "res/atlas/game.atlas", type:Laya.Loader.ATLAS }); asset.push({ url : "res/atlas/bubbles.atlas", type:Laya.Loader.ATLAS }); asset.push({ url : "game/bgGame.png", type:Laya.Loader.IMAGE });  Laya.loader.load(asset,Laya.Handler.create(this,loadingCallback),nul...

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

430. unity里导出的骨骼动画无法读取 [ 65%]

...的插件的参数,你看下有没有错误   读取代码:    Laya.loader.create("res/1.lh",Handler.create(this,onModelOK),null,Sprite3D); private function onModelOK():void         {              //添加3D场景              var scene:Scene = new Scene();  ...

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