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

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

481. 射线检测-碰撞器混合 [ 64%]

...odel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/ColliderScene/ColliderDemo.ls")); //初始化照相机 t...

来源: Laya_示例 发布时间: 20240930

482. 富文本使用图集 [ 64%]

... [error] Undefined class: ani 这是我哪里用的不对吗?   Laya.loader.load("res/1.json", Handler.create(this, createAnimation), null, Loader.ATLAS);  public function createAnimation():void         {             var appendHtml:HTMLDivElement=new HTMLDivElement();       ...

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

483. ConchJNI.RunJS java调用js方法 [ 64%]

...? 调用 Laya.MiniAdpter.downLoadFile缓存文件之后。再调用Laya.loader.create,不会自动去读取缓存文件 引擎中有使得Label中文字逐字显示的方法吗? 使用Laya.loader.load缓存下来的文件还在res目录下吗?在编辑模式下怎么调用缓存下来的文件...

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

484. LayaNative下不会缓存资源文件吗? [ 64%]

...ion 的createFrames 使用已经加载的图集缓存动画失败 请问下loader如何强制加载一个文件,避免浏览器的缓存 Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个小时后才不会报这个错。。...

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

485. ts版本,开发微信小游戏,wxlocal的问题,,, [ 64%]

...a.URL.basePath=ftp地址 然后去加载wxlocal里面的资源,   Laya.loader.load(arr, Handler.create(this, this.onLoadComplete),Handler.create(this, this.onLoading, null, false)); 发现并没有去加载这个资源,加断点发现一样走到了URL.formatURL 这个函数里面, 然后和...

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

486. layabox加载fairygui发布的二进制文件报错 [ 64%]

...游戏加载不了,路径没问题,麻烦看下   加载代码 Laya.loader.load([             { url:"res/Bag_atlas0.png", type:Laya.Loader.IMAGE },             { url:"res/Bag_atlas0_1.png", type:Laya.Loader.IMAGE},             { url:"res/Bag.json", type:Laya.Loader.BUFFER}  ...

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

487. 动画-新版骨骼动画 [ 64%]

...attack","left_fall","right_fall","back_fall"]; var curStateIndex = 0; Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () { changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")); changeActionButton.s...

来源: Laya_示例 发布时间: 20240930

488. Laya.Image怎么获取图片的真实大小 [ 64%]

...相关的链接 提交 2 个回复 何小威 赞同来自: 无名氏 Laya.loader.load('../laya/assets/comp/bg.jpg',Laya.Handler.create(this,()=>{       this.bgImage = Laya.loader.getRes('../laya/assets/comp/bg.jpg');       console.log([this.bgImage.width,this.bgImage.height]); })); 2018-07-...

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

489. 子容器的事件问题 [ 64%]

...r引擎 子容器的事件问题 // 程序入口 Laya.init(800, 800); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); let vhvt: Vi...

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

490. 没有预加载的图片怎么获取width和height ? [ 64%]

...nction text_load_width_height() {      Laya.init(600,400);     Laya.loader.load(["../laya/assets/comp/image.png","../laya/assets/comp/vscroll.png"],Laya.Handler.create(this,onAssetLoad));      } function onAssetLoad() {      older = new Laya.Sprite();      older.loadImage("../laya/a...

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