大约有 1,584 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
Laya_社区(1113) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(50) Laya3.0_api(11) Laya2.0_api(2)
...显示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
...的链接 提交 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
... Laya.loader.load("ui/guide01.ktx", Laya.Handler.create(this, (res)=>{ this.img.texture = res; })); 这样一来,不同的平台就需要使用不同的编程方式就大大降低了易用性,加大了不同平台耦合度。 最为致命的是,...
来源: Laya_社区 发布时间: 20220919
...击`保存`,存到**项目目录内**(本例为`项目根目录\bin\h5\res\TiledMap\`),如图3所示。  (图3) ### 1.3 修改图集路径和复制Tiled资源 ##### 只是存为json文件还不够,我们还要更改image绝对路径为相对路径。 我们通过IDE,打...
来源: Laya2.0_文档 发布时间: 20210715
...=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
...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
...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
...查看得到 Laya.Loader.loaderMap 中的映射是有问题的,就是 res/protobuf/client_message.proto 和 res/uieffect/skeleton/jingyu.sk 的值都是同一个 ArrayBuffer 对象, 也就是比较后面加载的 .proto 文件资源被映射到了 jingyu.sk 文件了。 可以看到...
来源: Laya_社区 发布时间: 20180328
...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
... 12:49 这个不是可以配置的吗, 为什么不能修改。 都放在res目录里我直接把res目录放到cdn就行了 kylin • 2019-05-15 19:47 设置了index.html目录以后,程序认为index.html在这个目录下,所有的资源、引擎等都会相对于这个目录去获取,所...
来源: Laya_社区 发布时间: 20190406