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

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

381. Spine动画资源加载时不能同时使用"版本管理"和"URL.basePath" [ 51%]

...问题的根源在于sk文件解析完毕后企图加载配套png时给到LoaderManager的png图片路径为已加上URL.basePath的路径(在此例中为https://www.xx.com/sp.png),而在version.json中记录的真实文件名映射关系中,key值为不带有URL.basePath的路径(在此...

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

382. 为什么说没有​ playByFrame方法 [ 50%]

...还有 我只加载动画使用的资源好想不可以?还有使用Laya.Loader的方式能不能加载ani文件? 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)...

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

383. 请教文档中Graphic.drawTextures方法第二个参数的具体参数格式 [ 50%]

...a2.5d项目美术规范的问题哈 2.0 drawTexture color参数无效 Laya.Loader.getRes请教 问题状态 最新活动: 2018-01-12 11:12 浏览: 1368 关注: 5 人 cuixueying • 2017-04-05 20:42 不用写成json,直接填写参数即可,跟接口处的参数一一对应上即可! rainysky ...

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

384. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 49%]

...引擎 Laya.init(500,500); var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAssetsLoaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对...

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

385. 1.7.19.1 beta 背景音乐在舞台失焦和静音状态下可能导致的无法播放的异常问题! [ 49%]

...undMuted)return null; }; var tSound; if (!Browser.onMiniGame){ tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ tSound=new soundClass(); tSound.load(url); Loader.cacheRes(url,tSound); }; var channel; channel=tSound.play(startTime,loops); if (!chann...

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

386. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 49%]

...JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onCompl...

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

387. ViewStack属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 49%]

...lor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab...

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

388. 多线程Worker · LayaAir3.0文档 · LAYABOX [ 49%]

....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("../atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():v...

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

389. 运行器在手机上一打开就崩溃 [ 47%]

... 07-22 15:28:49.398: E/AndroidRuntime(13400): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134) 07-22 15:28:49.398: E/AndroidRuntime(13400): at java.lang.ClassLoader.loadClass(ClassLoader.java:379) 07-22 15:28:49.398: E/AndroidRuntime(13400): at java.lang.ClassLoader.loadCla...

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

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

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