大约有 257 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0051 秒)
Laya_社区(103) Laya3.0_api(56) Laya2.0_文档(32) Laya2.0_示例(27) Laya_示例(24) Laya3.0_文档(14) Laya2.0_api(1)
...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"; drawPentagram(); })(); function drawPentag...
来源: Laya_示例 发布时间: 20260303
... var WebGL = Laya.WebGL; var SPACING = 100; var INPUT_WIDTH = 300; var INPUT_HEIGHT = 50; var Y_OFFSET = 50; var skins; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); ...
来源: Laya_社区 发布时间: 20190814
...GL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "...
来源: Laya_社区 发布时间: 20201203
... b = sprite.getBounds(); if (b.width <= 0 || b.height <= 0) { return; } 同时,发现这里区域计算与第一次渲染不一致,以下是修改后的; //start ...
来源: Laya_社区 发布时间: 20210629
...ysChange = true; rankList.graphics.drawTexture(texture, 0, 0, sharedCanvas.width, sharedCanvas.height); 2018-10-02 0 10 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 淡淡的疯 相关问题 微信关系链:Laya...
来源: Laya_社区 发布时间: 20181001
...position = "absolute"; this.newMask.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.backgro...
来源: Laya_社区 发布时间: 20181214
...utils.Browser; public class Retitution extends Sprite { private const stageWidth:int = 800; private const stageHeight:int = 600; private var Matter:Object = Browser.window.Matter; private var LayaRender:Object = Browser.window.LayaRender; private var mouseConstraint:*; private var engine:*; /***/ pu...
来源: Laya_社区 发布时间: 20171214
...ure:Skeleton; public function ASDemo() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); var DesBtn:Sprite = createButton("销毁动画"); DesBtn.x = 50; DesBtn.y = 50; Laya.stage.addChild(DesBtn); //创建一个Sprite充当音乐播放按钮 va...
来源: Laya_社区 发布时间: 20170406
...info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, onDeviceorientation); function onDeviceorientation(absolute, rotationInfo) { this.info.text = "alpha:" + Math....
来源: Laya2.0_文档 发布时间: 20210714
...n: Sprite = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundButton.height) / 2; Laya.stage.addChild(soundButton); //创建一个Sprite充当音乐播放按钮 var musicButton: Sprite = this.createBut...
来源: Laya_社区 发布时间: 20190421