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

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

491. 急急急,如何设置按钮点击加载ani [ 80%]

...复 Laya_Aaron 赞同来自: Alex Huang package {     import laya.net.Loader;     import laya.net.ResourceVersion;     import laya.utils.Handler;     import laya.webgl.WebGL;     import laya.utils.Mouse;     import laya.ui.Button;     import laya.display.Sprite;     i...

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

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

493. 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_示例 发布时间: 20260818

494. 导入微信小游戏的时候 [ 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

495. 资源加载问题 [ 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

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

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

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

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

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

499. Spine3D渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 80%]

...载Spine动画数据资源(json文件),注意一定要设置为Laya.Loader.SPINE类型,否则不会把json认为是SPINE资源 Laya.loader.load("girl2/mix-and-match-pro.json", Laya.Loader.SPINE).then(() => { // 添加Spine3D渲染器组件到3D精灵节点上 this.spine3D = this.owner.add...

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

500. 模型资源异步加载和预加载 [ 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