大约有 1,720 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
...t sp = new Laya.Sprite(); sp.size(Laya.stage.width, Laya.stage.height); sp.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, '0xff0000'); Laya.stage.addChild(sp); 附件 : --> 2025-07-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20250731
...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX g...
来源: Laya3.0_api 发布时间: 20231115
...引导容器 maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000") 重点来了,这里设置了可点击区域,范围也是全屏,给了舞台 hitArea.hit.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000") 最后,在背景的click事件触发的nextStep...
来源: Laya_社区 发布时间: 20180530
...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.createSpr...
来源: Laya2.0_示例 发布时间: 20251209
...六张图片源填充纹理。 TextureCube setSixSidePixels(width:int, height:int, pixels:Array):void 通过六张图片源填充纹理。 TextureCubeProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods MethodDefined By _disposeResource():void[override] BaseTextur...
来源: Laya2.0_api 发布时间: 20190513
..._multiLineLayout(element)里面的updatePos(0,tWidth,i,tY,align,valign,lineHeight)函数里对元素根据对齐方式重新设置坐标。这里面感觉对垂直居中的y坐标的计算方式不对。根据的是行高来计算,而不是我给组件设置的高 Laya_Aaron • 2018-01-04 12:03...
来源: Laya_社区 发布时间: 20180104
....style.zIndex = "1"; this.newMask.style.width = "100%"; this.newMask.style.height = Math.max(document.body.scrollHeight, document.documentElement.scrollHeight) + 100 + "px"; this.newMask.style.top = "0px"; this.newMask.style.left = "0px"; this.newMask.style.background = "gray"; this.newMask.style.fi...
来源: Laya_社区 发布时间: 20181214
...述一下现象:Laya.stage根据外部浏览器的大小而变化width和height,stage里面有个sprite,sprite里面有个Button,Button时刻保持在右上角。因为忘了设置sprite的width和height,导致按钮有时移出sprite 的范围而失去焦点,只要同时把sprite的宽...
来源: Laya_社区 发布时间: 20171128
...alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.mouseThrough = false; Laya.stage.addChild(maskArea); 2018-09-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20180911
...口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 显示对象的高度,单位为像素,默认为0。 此高度用于鼠标碰撞检测,并不影响显示对象图像大小。需要对显示对象的图像进行缩放,请使用scale、scaleX、scaleY...
来源: laya_api 发布时间: 20170929