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

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

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

492. 射线检测-碰撞器混合 [ 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_示例 发布时间: 20251209

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

...游戏加载不了,路径没问题,麻烦看下   加载代码 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

494. ts如何通过文件集加载的方法预加载声音文件,然后再调用 [ 63%]

...行缓存处理,然后下次播放声音时直接从缓存获取。 Laya.loader.load([{url:"xxx.mp3",type:Loader.SOUND}],Handler.create(this,onComped)) 2016-12-13 1 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 feini 相关问题 两个...

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

495. 子容器的事件问题 [ 63%]

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

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

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

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

...相关的链接 提交 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

498. 动画-新版骨骼动画 [ 63%]

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

499. 特效LOADED监听不到 [ 63%]

...n; import laya.display.Stage; import laya.maths.Rectangle; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class LayaAirDemo { private const AniConfPath:String = "fighter/fighter.json"; public function LayaAirDemo() { // 不支持WebGL时...

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

500. loadAnimation无法获取动画文件 [ 63%]

...   "res/atlas/role/monster/monsterA/move.atlas"         ];   Laya.loader.load(aniArr, Handler.create(this, onAni), null, Loader.ATLAS);   private function onAni():void {     var role:SimpleRole = new SimpleRole();     Laya.stage.addChild(role); }       SimpleRole类:   public fun...

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