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

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

281. 3D资源加载失败问题 [ 74%]

3D资源加载失败问题 一个3D资源 首次用Laya.loader.create 再Laya.loader.getRes加载是成功的,接下来我把这个3D资源所有依赖的资源清理掉,循环destroy clearRes。这时候内存降下来了,然后再去Laya.loader.create 再Laya.loader.getRes加载失败 2018-...

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

282. 性能测试-虫子(慎入) [ 74%]

...2, Laya.stage.height + padding * 2); Laya.loader.load(texturePath, Handler.create(this, this.onTextureLoaded)); } onTextureLoaded() { maggotTexture = Laya.loader.getRes(texturePath); this.initMaggots(); Laya.timer.frameLoop(1, this, this.animate); } initMaggots() { let maggotContainer; for (let i = ...

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

283. UI-RadioGroup [ 74%]

...png", "../../res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, initRadioGroups)); })(); function initRadioGroups() { for (var i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.al...

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

284. UI-RadioGroup [ 74%]

...n (2).png", "res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, this.initRadioGroups)); } initRadioGroups() { for (let i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = S...

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

285. laya.CylinderMesh is not a constructor [ 74%]

...新后文档和示例没更新。   新的方法是new Laya.PrimitiveMesh.create【加上对应体的名字】。 如圆柱是:new Laya.PrimitiveMesh.create Cylinder()   2019-06-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 186...

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

286. tween缓动时能不能实时得出当前的位置 [ 74%]

...update方法是可以的 Tween.to(_source, {x:endX, y:endY, update:Handler.create(this, tweenUpdate)},200, null, Handler.create(this, moveComplete));   2017-12-27 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 z1071051378 相关问题 ...

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

287. 内存不够,在哪里设置? [ 74%]

内存不够,在哪里设置? 第二次调用Laya.loader.create("LayaScene_FloorChallenge/Conventional/FloorChallenge.ls",Laya.Handler.create(this, this.completeHandler,null,false));的时候,就出现图片出现的内存问题了 附件 : --> 2018-12-27 添加评论 免费帖 --> 分享 微...

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

288. Laya1.7.20如何加载3d资源? [ 74%]

...开加载速度过慢,有黑屏,如何加入闪屏图片 Animation 的createFrames 使用已经加载的图集缓存动画失败 问题状态 最新活动: 2019-05-15 11:43 浏览: 677 关注: 2 人 小哥哥 • 2019-05-15 11:48 就是照那上写的啊 u3d5.6.6 插件也是下的1.x bpmf_d •...

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

289. res下面的资源在微信扫码预览找不到 [ 74%]

res下面的资源在微信扫码预览找不到 Laya.loader.create("res/layaScene_house/layafight.ls", Laya.Handler.create(this, onComplete)); 这种加载res下面资源方式。微信扫码在手机上找不到资源是怎么回事呢,在浏览器或者模拟器都是正常的 2018-05-07 添...

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

290. 物理引擎的使用 [ 74%]

...orld:* = Matter.World; var Bodies:* = Matter.Bodies; var engine:* = Engine.create(); var world:* = engine.world; var render:* = Matter.Render.create({engine: engine, element: Render.canvas}); Engine.run(engine); Matter.Render.run(render); var boxA:* = Bodies.rectangle(500, 170, 40, 260); World.add(w...

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