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

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

591. 1.6.2打包的图集不能使用 [ 69%]

...显示longtime  。。在断点的情况下。 Laya.loader.load([{url: "res/atlas/longCard.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); 在onLoaded var textrue = Laya.loader.getRes(longcard/xxx.png)总是undedined。。。求解。。。 相关链接 : http://ask.layabox.com/qu...

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

592. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 69%]

...的链接 提交 1 个回复 ssqhu 赞同来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void    {     var t:Texture = Laya.loader.getRes("res/atlas/test0.png");     ape = new Sprite();     var matrix:Matrix = new Matrix();     matrix.a = -1; ...

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

593. 关于ASTC使用问题和建议 [ 69%]

...         Laya.loader.load("ui/guide01.ktx", Laya.Handler.create(this, (res)=>{             this.img.texture = res;         })); 这样一来,不同的平台就需要使用不同的编程方式就大大降低了易用性,加大了不同平台耦合度。   最为致命的是,...

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

594. 用LayaAir引擎解析Tiled Map地图(JavaScript-2D进阶篇(JS)-扩展模块) [ 69%]

...击`保存`,存到**项目目录内**(本例为`项目根目录\bin\h5\res\TiledMap\`),如图3所示。 ![图3](img/3.png) (图3) ### 1.3 修改图集路径和复制Tiled资源 ##### 只是存为json文件还不够,我们还要更改image绝对路径为相对路径。 我们通过IDE,打...

来源: Laya2.0_文档 发布时间: 20210715

595. Sprite3D的克隆(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 69%]

...=Sprite3DClone)) ```typescript { ...... //加载模型 Laya.loader.create("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/skinModel...

来源: Laya2.0_文档 发布时间: 20210714

596. 射线检测-点击行走 [ 69%]

...a.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.mesh = plane.meshFilter....

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

597. 如何自定义动画集的图片大小? [ 69%]

...tion.createFrames(["xxx/enemy.png"],"enemy_fly");文件路径: bin > res > atlas > xxx.atlas  操作对象: xxx.atlas "enemy1.png": { "frame": { "h": 145, "idx": 0, "w": 156, "x": 1150, "y": 292 }, "rotated": false, "sourceSize": { "h": 145, "w": 156 }, "spriteSourceSize": { "h": 145...

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

598. QQ玩一玩,在加载 骨骼动画 后的资源映射出问题了 [ 69%]

...查看得到 Laya.Loader.loaderMap 中的映射是有问题的,就是  res/protobuf/client_message.proto 和 res/uieffect/skeleton/jingyu.sk 的值都是同一个 ArrayBuffer 对象, 也就是比较后面加载的 .proto 文件资源被映射到了 jingyu.sk 文件了。   可以看到...

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

599. 无法正常运行官网中的示例代码 [ 69%]

...http://ldc.layabox.com/index.p ... 3D622 控制台报错: Failed to load resource: net::ERR_FILE_NOT_FOUND [warn]Retry to load: D:/demo/bin/res/atlas/comp.json Failed to load resource: net::ERR_FILE_NOT_FOUND [error]Failed to load: D:/demo/bin/res/atlas/comp.json 2017-03-28 添加评论 免费帖 ...

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

600. laya ide2.0 类库设置显示为空 [ 69%]

... 12:49 这个不是可以配置的吗, 为什么不能修改。 都放在res目录里我直接把res目录放到cdn就行了 kylin • 2019-05-15 19:47 设置了index.html目录以后,程序认为index.html在这个目录下,所有的资源、引擎等都会相对于这个目录去获取,所...

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