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

大约有 1,851 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0055 秒)

151. 音频-播放演示 [ 88%]

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

152. 文本-多行输入 [ 88%]

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

153. 显示对象的mask缩放为0时遮罩效果不生效 [ 88%]

...没有生效 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

154. 添加了MouseJoint没有效果 [ 88%]

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

155. 在 list 的 box(render) 中添加 HTMLDivElemnt 组件 导致 IDE 卡死崩溃 IDE版本:2.12.0 [ 88%]

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

156. 输入设备-地图 [ 88%]

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

157. DOM元素-表单输入 [ 88%]

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

158. 新手引导 挖洞 不用 cacheAs="bitmap" 希望能帮助那些和我一样有需求的码农!你好我好大家好才是真的好!请各位大佬批评指教! [ 88%]

...///////////////////////////////////////////////         var browserWidth = Laya.Browser.width;         var browserHeight = Laya.Browser.height;         var pixelRatio = Laya.Browser.pixelRatio;         console.log(browserWidth + " " + browserHeight + " " + pixelRatio)...

来源: Laya_社区 发布时间: 20200604

159. 文本-自动换行 [ 88%]

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

160. 性能测试-卡通人物 [ 88%]

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