大约有 635 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
Laya_社区(387) laya_api(53) Laya3.0_api(48) Laya2.0_文档(47) Laya3.0_文档(33) Laya2.0_示例(31) Laya_示例(28) Laya2.0_api(8)
... 在内存优化方面,考虑到低端机,都是尽可能优化到200M以下。 2018-01-22 1 0 分享 微博 QZONE 微信 hill_0219 赞同来自: 补充问题 2018-01-20 0 0 分享 微博 QZONE 微信 hill_0219 赞同来自: 再询问下 2018-01-22 0 0 分享 微博 QZONE 微信 hill_0219 赞...
来源: Laya_社区 发布时间: 20180120
...gine }); // create two boxes and a ground var boxA = Bodies.rectangle(400, 200, 80, 80); var boxB = Bodies.rectangle(450, 50, 80, 80); var ground = Bodies.rectangle(400, 500, 810, 60, { isStatic: true }); // add all of the bodies to the world World.add(engine.world, [boxA, boxB, ground]); // run the...
来源: Laya_社区 发布时间: 20170905
... Laya.Tween; var WebGL = Laya.WebGL; //swipe滚动范围 var TrackLength = 200; //触发swipe的拖动距离 var TOGGLE_DIST = TrackLength / 2; var buttonPosition, beginPosition, endPosition; var button; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.c...
来源: Laya_示例 发布时间: 20251130
...esponseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObje...
来源: Laya2.0_文档 发布时间: 20210714
...esponseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObje...
来源: Laya2.0_文档 发布时间: 20210714
...nt,yy:int):Sprite { var btn:Sprite=new Sprite(); btn.graphics.drawRect(0,0,200,50,"#FF0000"); btn.pos(100,400); var text:Text=new Text(); text.text="Draw"; btn.addChild(text); Laya.stage.addChild(btn); btn.size(200,50); return btn; } //点击DrawToCanvas按钮,进行截屏 private function onClick...
来源: Laya_社区 发布时间: 20170822
...次 onAwake(): void { let radio: Laya.Radio = new Laya.Radio(); radio.pos(200, 200); radio.size(160, 64); radio.stateNum = 3; radio.selected = false; radio.skin = "atlas/comp/radio.png"; radio.label = "LayaAir"; radio.labelSize = 20; radio.labelBold = true; radio.labelVAlign = "top"; this.owner.addC...
来源: Laya3.0_文档 发布时间: 20251010
...kin = "../../../../res/ui/vscroll.png"; //设置高度 vScrollBar.height = 200; //设置位置 vScrollBar.pos(400, 200); //最低滚动位置数字 vScrollBar.min = 0; //最高滚动位置数字 vScrollBar.max = 100; //滚动变化事件回调 vScrollBar.changeHandler = new Handler(this, onChange); ...
来源: Laya2.0_文档 发布时间: 20210715
...LayaAirIDE让项目开发更高效。//swipe滚动范围 let TrackLength = 200; //触发swipe的拖动距离 let TOGGLE_DIST = TrackLength / 2; let buttonPosition, beginPosition, endPosition; let button; class Interaction_Swipe { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stag...
来源: Laya2.0_示例 发布时间: 20251130
...商,面向AS/JS/TS开发者提供HTML5开发技术方案!"; txt.size(200, 100); txt.x = Laya.stage.width - txt.width >> 1; txt.y = Laya.stage.height - txt.height >> 1; txt.borderColor = "#FFFF00"; txt.fontSize = 20; txt.color = "#ffffff"; Laya.stage.addChild(txt); txt.on(Event.MOUSE_DOWN, this, ...
来源: Laya_示例 发布时间: 20251130