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

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

491. native环境下动态载入脚本并执行 [ 80%]

...不能在native环境下手动载入若干脚本并执行。   ``` Laya.loader.load("http://118.17.23.1:9877/xxx.js", Handler.create(this, onLoad));//as3 ``` 2017-10-25 2 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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

492. Sprite-遮罩-放大镜 [ 80%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load([bgPath, maskPath], Laya.Handler.create(this, this.setup)); } setup() { const Sprite = Laya.Sprite; let bgRes = Laya.loader.getRes(bgPath), maskRes = Laya.loader.getRes(maskPath); let bg = new Sprite(); Laya.stage...

来源: Laya2.0_示例 发布时间: 20251218

493. 导入微信小游戏的时候 [ 80%]

...esInfo.__proto.event (http://127.0.0.1:65353/game/code.js:483:28)     at LoaderManager.__proto._endLoad (http://127.0.0.1:65353/game/code.js:13152:11)     at Loader.onLoaded (http://127.0.0.1:65353/game/code.js:13128:10)     at EventHandler.__proto.runWith (http://127.0.0.1:65353/game/code.js:...

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

494. 资源加载问题 [ 80%]

资源加载问题 无限资源加载问题  Uncaught Error: LoaderManager:unknown file(res/scene/scene.ls) extension with: ls.     at LoaderManager.__proto._create (laya.core.js:13205)     at LoaderManager.__proto.create (laya.core.js:13173)     at LayaGame.<anonymous> (LayaGame.ts:60...

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

495. 资源加载过程中断网 [ 80%]

...: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: Laya.loader.load方法加载文件时,如果网络中断,在尝试加载失败后会触发Laya.loader.on("error",this,onLoader); function onLoaded(){   }   不知道你是怎么写的,我们自己做项目都是这样做的...

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

496. layaair ide 2.0.0 beta2 读取.lh文件报错 [ 80%]

... fbxtools插件版本1.7.16beta 导出的文件夹放到bin目录, 用Laya.loader.create读取.lh文件报错,   laya.d3.js:15158 Uncaught TypeError: Cannot read property 'props' of undefinedat Function.Laya3D._getSprite3DHierarchyInnerUrls (laya.d3.js:15158) at Loader.Laya3D._onHierarchylhLoaded (...

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

497. Laya2.6.0 升级至Laya2.8.0 Native环境 加载ttf 字体不生效 [ 80%]

...ont1Req =  new Promise((resolve => {             Laya.loader.load("res/fonts/OPPOSANS-R.TTF", Laya.Handler.create(this, (success: boolean) => {                 if (!success) {                     console.error("OPPOSANS-R ttf 字...

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

498. 模型资源异步加载和预加载 [ 80%]

...("res/room.lh");   //方法二:预加载,创建为Sprite3D类型 Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 private onCreateComplete():void{ //实例化加载并创建好的3D对象 var sprite3D:Laya.Sprite3D = Laya.loader.getRe...

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

499. Image 动态替换图片后变小了 [ 80%]

...小   var assets:Array = ;      assets.push({url:"map/157.jpg", type:Loader.IMAGE});      Laya.loader.load(assets, Handler.create(this, loadMapBGComplete));      function loadMapBGComplete():void{       var tx:Texture = Laya.loader.getRes("map/157.jpg");       this._test....

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

500. Animation._loadAnimationData方法内释放.ani文件的调用位置不对 [ 80%]

...._loadAnimationData方法内释放.ani文件的调用位置不对 如图,Loader.clearRes(url)在没加载完.ani就调用了,应该在Laya.loader.load的的完成回调内调用 附件 : --> 2018-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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