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

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

31. swf转换时没有进度 [ 72%]

...ctionScript 3.0) 关于龙骨动画转换 localToGlobal坐标转换 Laya.loader.create 进度回调函数执行两次 fbxtools 在哪里下载啊?在 工具菜单>3D转换工具 里下载的只有 unity3d 的插件 这种进度条怎么实现? spine动画转换失败,加载错误:导出二进...

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

32. LayaAir 如何读取资源中的txt文件中的内容 [ 72%]

...的txt文件中的内容 var testPath ="res/Test.txt"; console.log( Laya.loader.load(testPath)); console.log(Laya.Loader.getRes(testPath)); 这里打印的是 LoaderManager {retryNum: 1, retryDelay: 0, maxLoader: 5, _loaders: Array(4), _loaderCount: 1…} undefined 并不是文本的内容,求支...

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

33. 关于微信小游戏加载 ls和lh资源文件被认为是string而不是json对象问题 [ 72%]

... QZONE 微信 SkyWalker 赞同来自: 我遇到类似的情况, 用 Laya.loader.create() 预加载 Sprite3D  (2.0 插件导出的 lh) 文件 加载成功后,用 Laya.loader.getRes() 获取 let sprite3D: Laya.Sprite3D = Laya.loader.getRes(resName) as Laya.Sprite3D; 调试发现 获取到的 对...

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

34. LayaNative2.0 beta3 单像素图片平铺绘制失败 [ 72%]

...yaNative2.0 beta3 单像素图片平铺绘制失败 var tex:Texture = Laya.loader.getRes("res/repeattest.png");// 此图宽度只有1像素,横着平铺绘制无法显示 p.graphics.fillTexture(tex, 0, 0, 100, tex.height);// 无法显示 p.graphics.drawTexture(tex, 0, 0, 100, tex.height);// 正常...

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

35. 加载图片的时间 [ 71%]

...前只能获取到 宽高信息,像素信息没有,你可以通过给Loader.getRes方法传一个你加载资源的路径,如果图片加载了,这时会返回一个texture实例,实例里应该有我说的这些信息 2018-04-10 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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

36. Laya.loader.load 加载场景报错 [ 71%]

Laya.loader.load 加载场景报错 Laya.loader.load( 模型url, Laya.Handler.create(this, function(){ this.scene = Laya.loader.getRes(模型url); Laya.stage.addChild(this.scene); }),null, null, 1, true, "scene1"); 执行后,浏览器报 : laya.core.js:13290 Uncaught TypeError: node._setParent ...

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

37. 释放已经预加载但未使用的模型资源报错 [ 71%]

...该模型资源的情况下去释放它会报错,必须要先调用Laya.loader.getRes()获取模型并调用destroy()才行,希望官方能够尽快修改此bug。 2017-12-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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

38. laya.net.LoaderManager [ 71%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderManagerProperties | Methods | Events Packagelaya.netClasspublic class LoaderManagerInheritanceLoaderManager EventDispatcher Object LoaderManager 类用于用于批量加载资源。此类是单例,不要手动实...

来源: Laya2.0_api 发布时间: 20190513

39. 如何在项目中加载ttf字体? [ 71%]

...载ttf字体? 参考http://ask.layabox.com/question/1645写的, Laya.loader.load("font/本墨竟圆-常规.ttf",Laya.Handler.create(this,OnComplete_FontLoad),null,Laya.Loader.BUFFER); function OnComplete_FontLoad() { console.log("加载字体"); var newFont = Laya.loader.getRes("font/本墨竟...

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

40. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 70%]

....js 在之前的基础上增加加载图片的代码://加载图片 Laya.loader.load(["res/background.png", "res/m_background.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoad...

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