大约有 1,851 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0055 秒)
Laya_社区(1124) Laya3.0_api(242) Laya2.0_文档(103) Laya2.0_示例(94) Laya_示例(91) Laya2.0_api(82) laya_api(76) Laya3.0_文档(39)
...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_示例 发布时间: 20240929
...ya.Stat; // 不支持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.createInput(); } createInpu...
来源: Laya2.0_示例 发布时间: 20240929
...没有生效 Laya.init(640, 1136); let testSp = new Laya.Sprite(); testSp.width = 200; testSp.height = 50; testSp.graphics.clear(); testSp.graphics.drawRect(0, 0, testSp.width, testSp.height,'#FF0000'); let tmpMask = new Laya.Sprite(); tmpMask.width = testSp.width; tmpMask.height = testSp.height; tm...
来源: Laya_社区 发布时间: 20200421
...); ropePart.texture = ropePartTexture; ropePart.pos(48*vw,10*vh); ropePart.width = 4*vw; ropePart.height = 10*vh; let boxCollider = new laya.physics.BoxCollider(); boxCollider.width = ropePart.width; boxCollider.height = ropePart.height; ropePart.addComponentIntance(boxCollider); ropePart.addCompone...
来源: Laya_社区 发布时间: 20190424
...ctedBox":3, "selecteID":4, "searchKey":"View", "props":{"width":640,"sceneColor":"#000000","height":1136}, "nodeParent":-1, "maxID":11, "label":"View", "isOpen":true, "isDirectory":true, "isAniNode":true, "hasChild":true, "compId":2, ...
来源: Laya_社区 发布时间: 20210817
...vertor(); // Div var mapDiv; var infoText; (function() { Laya.init(Browser.width, 255); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; createDom(); initMap(); createInfoText(); var successHandler = new Handler(this, updatePosition); var errorHandler = new Handler(this, onError); // 使用高精度位...
来源: Laya_示例 发布时间: 20240929
...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_示例 发布时间: 20240929
.../////////////////////////////////////////////// var browserWidth = Laya.Browser.width; var browserHeight = Laya.Browser.height; var pixelRatio = Laya.Browser.pixelRatio; console.log(browserWidth + " " + browserHeight + " " + pixelRatio)...
来源: Laya_社区 发布时间: 20200604
...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 = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createText(); })(); function cre...
来源: Laya_示例 发布时间: 20240929
...= Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, 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(); Laya.loader.load("res/car...
来源: Laya2.0_示例 发布时间: 20240929