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

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

341. 物理引擎,刚体施加力效果错误,有人帮忙看下吗 [ 62%]

...板 var floor:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 2000, 100, 100))) as MeshSprite3D; //给地板添加物理组件 var floorCollicar:PhysicsCollider = floor.addComponent(PhysicsCollider); // 添加collidershape floorCollicar.colliderShape = new BoxColliderSha...

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

342. 屏幕截屏问题 [ 62%]

...ureScreen(function(arrayBuff,width,height){ window.image = window.document.createElement("img"); window.image.putImageData(arrayBuff,width,height); }) } }     E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>className:layaai...

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

343. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 62%]

...item.size; items.push(item); var progressHandler = progress ? Laya.Handler.create(null, loadProgress, [item], false) : null; var completeHandler = (complete || progress) ? Laya.Handler.create(null, loadComplete, [item]) : null; this.load(item.url, completeHandler, progressHandler, item.type, item.pr...

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

344. 以前问题的进度咨询 [ 62%]

...PS的一些问题咨询! 想将以前的页游项目转成h5 Laya.loader.create 进度回调函数执行两次 drawTexture 画出来的数据会有以前的数据 问题状态 最新活动: 2017-07-18 10:10 浏览: 706 关注: 2 人

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

345. Bug? 用LayaRender渲染Sprite的全部不显示 用原生的都正常 [ 62%]

...浏览: 1300 关注: 2 人 chengluliang • 2017-07-31 17:42 就是用Body.create({parts: parts, collisionFilter: {category: carCategory} 这种组合的创建 组件里面的render完全没有效果 chengluliang • 2017-08-04 15:46 能解决这个组合纹理无法显示的问题吗? 等几天...

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

346. 使用IDE生成图集后,无论使用图集下的某个小图 [ 62%]

...ost:3000/shoot/v2/img/assets/assets.json', type : Loader.ALTAS }], Handler.create(this, function () { var _getRes = Laya.loader.getRes('bg-toolbar.png'); console.log(_getRes); }));然后log出来是undefined的,请问如何破?还有,对于图集的存放位置有什么要求吗(我不是用...

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

347. [LayaAir3]3.2spine动画和3.0.8效果不一样 [ 62%]

...f8.js:1 8The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. <URL> Scene.ts:402 Error loading Loading.ls: Error: unknown type 'xmaaYG8AQ1yC07pr_JvyPA' (anonymous) @ Scene.ts:402 Promise.then (async) load @ Scene.ts:395 open @ Scene.ts:44...

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

348. 关于mouseThough=true的问题 [ 61%]

...ot;fish_6.png" ],type:Loader.IMAGE}); Laya.loader.load(assets,Handler.create(this,onLoaded)); } private function onLoaded():void{ var img:Image = new Image("fish_6.png"); img.on(Event.CLICK,this,onClick); img.mouseThrough = true; Laya.stage.addChild(img); } 代码就这么简单,图...

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

349. 动画-图集动画 [ 61%]

...Laya.stage.bgColor = "#232628"; Laya.loader.load(aniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.Loader.ATLAS); } createAnimation() { const Animation = Laya.Animation; let ani = new Animation(); Laya.stage.addChild(ani); ani.loadAtlas(aniConfPath); // 加载图集动画 ani....

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

350. 鼠标交互-拖动 [ 61%]

...howall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { createApe(); showDragRegion(); } function createApe() { ape = new Sprite(); ape.loadImage(ApePath); Laya.stage.addChild(ape); var texture = Laya.loader.getRes(ApePath); ape.pivot...

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