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

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

231. 图集打包分裂严重 [ 81%]

...下的切图,打包后被分配到了三个目录 bin\ad\... 和  bin\res\atlas\ad\... 和  bin\res\atlas\ad.png 这也太乱了太分裂了,统一放在res\atlas\ad目录下,方便做分包加载。   附件 : --> 2020-08-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

232. Sprite3D-Sprite3D克隆 [ 81%]

...otate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")...

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

233. 材质-BlinnPhong材质加载 [ 81%]

...ar layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); //加载材质 layaMonkey.meshRender.material = Laya.StandardMaterial.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/Mater...

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

234. layaAirIDE中如何使用wx等微信基础对象,ide版本1.7.19.1beta [ 81%]

...beta wx.login({ success: function () { wx.getUserInfo({ success: function (res) { console.log('success', res) }, fail: function (res) { console.log("reject",res) } }) } }); 这段代码里的wx对象,报错如下 "wx is not defined" 2018-07-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

235. 分享:LayaAir下如何获取图集下的小图资源? [ 81%]

...列表,F12打包图集并进行发布 F12导出后会出在动在bin/h5/res/atlas下自动生成.json和.png图片,该文件即为图集文件 步骤三:预加载图集并获取图集下的小图资源package { import laya.display.Animation; import laya.display.Sprite; import laya.net.Loader; ...

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

236. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 80%]

...rial;         //添加漫反射贴图         Laya.Texture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) {             this.mat1.albedoTexture = tex;         }));         Laya.Texture2D.load("res/threeDimen/Physics/plywood.jpg", Laya.Handle...

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

237. 复选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 80%]

...// 图片资源来自“引擎API使用示例” private skins: any[] = [ "resources/res/ui/checkbox (1).png", "resources/res/ui/checkbox (2).png", "resources/res/ui/checkbox (3).png", "resources/res/ui/checkbox (4).png", "resources/res/ui/checkbox (5).png", "resources/res/ui/checkbox (6).png" ]; co...

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

238. Sprite-节点控制 [ 80%]

...ateApes(); } createApes() { const Sprite = Laya.Sprite; let monkey2Path = "res/apes/monkey2.png"; this.ape1 = new Sprite(); this.ape2 = new Sprite(); this.ape1.loadImage(monkey2Path); this.ape2.loadImage(monkey2Path); this.ape1.pivot(55, 72); this.ape2.pivot(55, 72); this.ape1.pos(Laya.stage.width /...

来源: Laya2.0_示例 发布时间: 20251130

239. Laya如何分组管理资源加载 [ 80%]

...源改动了,不是又要一个个去对一下。   Laya.loader.load(["res/atlas/test1.atlas","res/atlas/test2.atlas","res/atlas/test3.atlas","test/test.json",....]); 各位,你们是怎么做的。 2019-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

240. 服务器访问:资源路径出错 导致404 [ 80%]

...径   这个是导出之后的路径   项目里的模型文件是在bin/res之下, 导出之后就在res目录之下  没有bin目录 这是什么原因呢? 附件 : --> 2016-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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