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

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

361. 请大家帮助优化一下这个抛物线的代码 [ 77%]

...all = new Ball(); Laya.stage.addChild(this.ball); this.ball.x = Laya.stage.width / 2; this.ball.y = Laya.stage.height / 2; Laya.stage.on(Laya.Event.CLICK,this,this.onClick); Laya.timer.frameLoop(1,this,this.onEnterFrame); } private onEnterFrame():void{ if(this.points.length>0){ if(this.i<this....

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

362. ProgressBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 77%]

...e() { progressBar = new ProgressBar("res/ui/progressBar.png"); progressBar.width = 400; progressBar.x = (Laya.stage.width - progressBar.width) / 2; progressBar.y = Laya.stage.height / 2; progressBar.sizeGrid = "5,5,5,5"; progressBar.changeHandler = new Handler(this, onChange); Laya.stage.addChild(pr...

来源: Laya2.0_文档 发布时间: 20210715

363. 使用百度地图 · LayaAir3.4 · 引擎文档 · LAYABOX [ 77%]

...标注物。 2.2 refit函数: private refit(): void { this.mapDiv.style.width = Laya.Browser.width / Laya. Browser.pixelRatio + "px"; this.mapDiv.style.height = Laya. Browser.height / Laya. Browser.pixelRatio + "px"; } refit()使百度地图充满整个窗口,由于侦听了resize事件,在窗...

来源: Laya3.0_文档 发布时间: 20251010

364. 文本align="center", 对齐方式无效,无论设置什么值,都是左对齐 [ 76%]

...(txtCountDown); txtCountDown.text = 15; txtCountDown.pivotX = txtCountDown.width/2; txtCountDown.align = "right"; txtCountDown.pos(this.rankSprite2.width / 2, 483); 2018-05-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

365. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 76%]

....valign = "middle"; // div.style.fontFamily = "Microsoft YaHei"; div.style.width = 200; div.style.color = "#000000"; for(let i=0; i<FaceView.faceArray.length; i++) { txt = txt.replace(FaceView.repl,'<img src="res/ChatFace/face'+i+'.png" style="width:28px;height:28px;"></img>'); } div....

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

366. 2D光遮挡器与阴影 · LayaAir3.4 · 引擎文档 · LAYABOX [ 76%]

...tReceive = true; } // 生成一个矩形 private generateRectVerticesAndUV(width: number, height: number): Laya.Mesh2D { const vertices = new Float32Array(4 * 5); const indices = new Uint16Array(2 * 3); let index = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[inde...

来源: Laya3.0_文档 发布时间: 20251010

367. 屏幕适配的缩放模式详解(TypeScript-2D基础篇(TS)-屏幕适配) [ 76%]

...幕宽高为`375*667`。LayaAir引擎可以通过laya.utils.Browser.clientWidth和laya.utils.Browser.clientHeight来获取屏幕的宽与高。 **6、物理宽高:** ​ 关于设备屏幕的物理宽高,我们需要先了解像素密度的概念。在PC电脑上,通常一个像素位置上就...

来源: Laya2.0_文档 发布时间: 20200307

368. UI-List [ 76%]

...temRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); list.renderHandle...

来源: Laya2.0_示例 发布时间: 20260303

369. 动画-旧版骨骼动画 [ 76%]

...xelRatio, Laya.Browser.pixelRatio); this.changeActionButton.pos(Laya.stage.width / 2 - this.changeActionButton.width * Laya.Browser.pixelRatio / 2, Laya.stage.height - 100 * Laya.Browser.pixelRatio); this.changeActionButton.on(Laya.Event.CLICK, this, function (): void { this.playSkinAnimation(this.z...

来源: Laya_示例 发布时间: 20260303

370. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 76%]

....valign = "middle"; // div.style.fontFamily = "Microsoft YaHei"; div.style.width = 200; div.style.color = "#black"; for(let i=0; i<FaceView.faceArray.length; i++) { txt = txt.replace(FaceView.repl,'<img src="res/face/face'+i+'.png" style="width:36px;height:36px;position:relative;top:30px;">...

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