大约有 905 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0054 秒)
Laya_社区(454) Laya2.0_示例(91) Laya_示例(88) Laya2.0_文档(74) Laya3.0_api(63) Laya2.0_api(58) laya_api(54) Laya3.0_文档(23)
...自定义渲染,才能使用customRender函数渲染。 Sprite designHeight : Number = 0设计高度(初始化时设置的高度Laya.init(width,height))Stage designWidth : Number = 0设计宽度(初始化时设置的宽度Laya.init(width,height))Stage destroyed : Boolean[只读]是...
来源: laya_api 发布时间: 20170929
...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"; createSprite(); })(); function createSprite() { sp = new Sprite...
来源: Laya_示例 发布时间: 20241124
...ext.width = 100; widthLimitText.y = 180; //该文本被限制了高度 var heightLimitText = createSampleText(); heightLimitText.height = 20; heightLimitText.y = 320; } function createSampleText() { var text = new Text(); text.overflow = Text.HIDDEN; text.color = "#FFFFFF"; text.font = "Impact"; tex...
来源: Laya_示例 发布时间: 20241124
...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.createApes(); } createApes() { const Sprite = La...
来源: Laya2.0_示例 发布时间: 20241124
....visibility = 'hidden'; style.zIndex = 9999; style.height = screen.height + 'px'; style.width = Math.floor(screen.height / Laya.stage.height * Laya.stage.width) + 'px'; document.body.appendChild(this.nativeImg) } onEnable() { La...
来源: Laya_社区 发布时间: 20230323
...ext.width = 100; widthLimitText.y = 180; //该文本被限制了高度 var heightLimitText = this.createSampleText(); heightLimitText.height = 20; heightLimitText.y = 320; } createSampleText() { const Text = Laya.Text; let text = new Text(); Laya.stage.addChild(text); text.overflow = Text.HIDDEN; te...
来源: Laya2.0_示例 发布时间: 20241124
...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_示例 发布时间: 20241124
...的资源 this.baseBox = new Box(); this.baseBox.width = 443; this.baseBox.height = 622; this.baseBox.pos(30, 28); this.baseBox.bgColor = "#ffffff"; // 加载进度条 this.refreshLoading = new Box(); this.refreshLoading.pos(133, 0); this.refreshLoading.bottom = 10; this.refreshLoading.visible = fal...
来源: Laya2.0_示例 发布时间: 20241124
...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"; connect(); showLogger(); })(); function connect() { hr = new Ht...
来源: Laya_示例 发布时间: 20241124
...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"; connect(); showLogger(); })(); function connect() { hr = new Ht...
来源: Laya_示例 发布时间: 20241124