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

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

41. Error: 代码包大小为 5533 kb,上限为 4096 kb,请删除文件后重试? [ 82%]

...就没有功能。 class Main { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { console.log("render"); var l = [ 0, 0, 0, ...

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

42. 如何过滤拥有相同name的节点对象? [ 82%]

...过精灵创建贴图对象,从而赋给材质? 获取sprite对象的 width和height为0 问题状态 最新活动: 2016-09-19 13:02 浏览: 2681 关注: 2 人

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

43. destination-out 叠加模式问题 [ 82%]

...制一下 guideContainer.scrollRect = new Rectangle(0, 0, Browser.clientWidth, Browser.clientHeight); 2017-12-15 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 li970704928 相关问题 发起问题须知,必看!!!不按提问规...

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

44. 关于mouseover的问题 [ 82%]

...             var sp:Sprite=new Sprite();             sp.width=100;             sp.height=100;             sp.graphics.drawRect(0,0,100,100,"#ff0000");             sp.on(Event.MOUSE_OVER,this,onMouse);             sp.on(Event.MOUSE_OUT,this,onMous...

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

45. laya.display.cmd.DrawRoundRectCmd_API3.0 [ 82%]

...rarchy DrawRoundRectCmd Index Properties fillColor height lb lineColor lineWidth lt percent rb rt width x y ID Methods getBoundPoints recover Properties fillColor fillColor: any Defined in laya/display/cmd/DrawRoundRectCmd.ts:43 填充颜色,或者填充绘图的渐变对象。 height height: numb...

来源: Laya3.0_api 发布时间: 20231115

46. 粒子释放问题 [ 82%]

...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL);   Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER;   Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628";   Stat.show();   Laya.URL.basePath...

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

47. 粒子加载报错 [ 81%]

...mitter.start(); // sp.play(); Laya.stage.addChild(sp);  sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } 附件 : --> 2019-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自:...

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

48. [LayaAir3]OPPO小游戏下图片地址无法加载 [ 81%]

...ny) => { var filePath = Laya.PAL.g.saveImageTempSync({ data: info.data, width: info.width, height: info.height, fileType: "png", }); // 再使用filePath赋值给src self.img.src = filePath; } );     2025-08-18 0 0 分享 微博 QZONE 微信 layabox 赞同来自: 我们这边实测,直接使...

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

49. 精灵 · LayaAir3.4 · 引擎文档 · LAYABOX [ 81%]

...atlas/comp/image.png"); //纹理:图片路径 this.sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置:屏幕中心 this.sprite.x = Laya.stage.width/2; //x、y分别设置位置 this.sprite.y = Laya.stage.height/2; this.sprite.size(512, 313); //大小 this.sprite.widt...

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

50. 请问一下,怎么将下面这段AS3代码翻译成LayaAir的API [ 81%]

...te_:Sprite = new Sprite(); var bitmap_:BitmapData = new BitmapData(_loader.width, _loader.height); bitmap_.draw(_loader, new Matrix()); var matrix:Matrix = new Matrix(); matrix.rotate(Math.PI/4); sprite_.graphics.beginBitmapFill(bitmap_, matrix, true); sprite_.graphics.drawRect(100, 50, 200, 90); sp...

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