• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 635 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)

221. 请教下微信小游戏的内存和数据缓存? [ 63%]

...   在内存优化方面,考虑到低端机,都是尽可能优化到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

222. 在Laya中使用Matter.js的最简示例 (JS) [ 63%]

...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

223. 鼠标交互-滑动 [ 63%]

... 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

224. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 63%]

...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

225. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 63%]

...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

226. 分享:DrawToCanvas内存释放问题! [ 62%]

...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

227. 单选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...次 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

228. VScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 62%]

...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

229. 鼠标交互-滑动 [ 62%]

...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

230. 文本-滚动文本 [ 62%]

...商,面向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