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

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

1. Laya api 中可能的bug [官方来看] [ 100%]

...鸟,自己动手处理了。 1.tiledmap中的MapLayer复写了Sprite的render方法,使用了自己的_showGridList顺序,这样在调整zorder时是调整不到的__proto.render=function(context,x,y){ var childs=this._childs; this._childs=this._showGridList; _super.prototype.render.call(this,...

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

2. matter.js 层级的问题 [ 88%]

...效果 l00l • 2017-01-19 16:20 官方给出这样的回答:The debug renderer doesn't currently support zIndex I'm afraid. I'd accept a pull request though. You'd need to add body.render.zIndex, and inside Matter.Render create a buffer and add all constraints and bodies, then sort by it. It shou...

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

3. 关于微信小游戏的开放数据域,请问如何将开放数据域的canvas绘制到layaair的image上? [ 61%]

...er.context.drawImage(wxMgr.getOpenDataCanvas(), 0, 0); // console.log(laya.renders.RenderContext); // laya.renders.RenderContext.ctx.drawImage(wxMgr.getOpenDataCanvas(), 0, 0); 2018-04-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

4. js进度,进度,js场景进度效果 [ 53%]

...nit = function() { //判断当前渲染模式是WebGL还是Canvas if (Laya.Render.isWebGL) { Laya.init(800, 600, Laya.WebGL); Config.isAlpha = true; //设置画布是否透明,只对2D(WebGL)、3D有效。 Laya.stage.bgColor = "none"; //背景透明 } else { Laya.init(800, 600); Laya.stage.bgColor...

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

5. matter中layasprite怎么改变图片大小? [ 50%]

...我用的js,别的应该一样的) var circel=Bodies.circle(x,y,16, { render:{ sprite: { texture: 'xxx.png', xOffset: 16, yOffset: 16, xScale:2, yScale:2 } } }); srr5220 • 2018-08-27 20:15 @阿耀:这种方式我试过可以,它会new一个Sprite,大小也会改变。但是我想要传入...

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