大约有 473 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0051 秒)
Laya_社区(169) Laya3.0_api(69) laya_api(60) Laya2.0_api(58) Laya_示例(33) Laya2.0_示例(33) Laya2.0_文档(31) Laya3.0_文档(20)
...a.Stage; // 不支持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"; this.flag = true; Laya.loader.lo...
来源: Laya2.0_示例 发布时间: 20261113
...关的链接 提交 3 个回复 Laya_Yan 赞同来自: 是不是bitmap的width和height没有设好,导致超出范围了? 2022-05-13 0 0 分享 微博 QZONE 微信 山东腊鸭 赞同来自: 项目屏幕的要求 2022-05-18 0 0 分享 微博 QZONE 微信 阳光宅男 赞同来自: cache bitmap...
来源: Laya_社区 发布时间: 20220513
...排版不居中 从0.1 版本升级到2.0后, HTMLDivElement 的 contextWidth没有组件的width大,没有相对组件居中。 异常情况 正常情况 代码如下 htmlDiv.width = 300; htmlDiv.height = 100; htmlDiv.style.color = color; htmlDiv.style.leading = leading; htmlDiv.s...
来源: Laya_社区 发布时间: 20190227
...rm = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10; var rowHeightDelta = this.rowSpacing + this.rowHeight; // 显示左侧标...
来源: Laya_示例 发布时间: 20261113
...t("img"); //设置file样式 file.style="filter:alpha(opacity=0);opacity:0;width:200px;height:100px;background:url(b1.png) no-repeat center;cursor:pointer;"; file.type ="file";//设置类型是file类型。 file.size ="30"; file.accept="image/png/jpg";//设置文件的格式为png; file.style.posi...
来源: Laya_社区 发布时间: 20190129
...ctor() { // 不支持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"; this.createSingleInput(); this.createMulti...
来源: Laya2.0_文档 发布时间: 20210715
...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"; setup(); })(); function setup() { var gap ...
来源: Laya_示例 发布时间: 20261113
...rm = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10; let rowHeightDelta = this.rowSpacing + this.rowHeight; // 显示左侧标...
来源: Laya2.0_示例 发布时间: 20261113
...int[read-only] 获取表面类型。 return 表面类型。 RenderTexture width : int[read-only] 获取宽度。 BaseTexturePublic Methods MethodDefined By RenderTexture(width:Number, height:Number, surfaceFormat:int, surfaceType:int, depthStencilFormat:int, mipMap:Boolean = false, repeat:Bool...
来源: laya_api 发布时间: 20170929
...tPrior window[`hitTestPrior`] = () => { let box1 = new Laya.Box(); box1.width = box1.height = 500; let sp = new Laya.Sprite(); sp.graphics.drawRect(0, 0, box1.width, box1.height, `#999900`); box1.addChild(sp); box1.clickHandle = () => { lizheng.log(`点击了box1`); } box1.hitTestPrior = false...
来源: Laya_社区 发布时间: 20170918