大约有 293 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0060 秒)
Laya_社区(77) Laya3.0_api(71) Laya2.0_api(57) laya_api(53) Laya2.0_文档(13) Laya2.0_示例(8) Laya3.0_文档(7) Laya_示例(7)
...就没有功能。 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
...过精灵创建贴图对象,从而赋给材质? 获取sprite对象的 width和height为0 问题状态 最新活动: 2016-09-19 13:02 浏览: 2681 关注: 2 人
来源: Laya_社区 发布时间: 20160919
...制一下 guideContainer.scrollRect = new Rectangle(0, 0, Browser.clientWidth, Browser.clientHeight); 2017-12-15 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 li970704928 相关问题 发起问题须知,必看!!!不按提问规...
来源: Laya_社区 发布时间: 20171213
... 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
...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
...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
...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
...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
...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
...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