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

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

41. 请教游戏布局的问题,想保证任何设备上一屏显示而不变形,求大神解答! [ 82%]

...不变形,求大神解答! 如图,我将页面分为头部top 中间center 底部foot 三部分view,想要实现整个页面在一屏内显示而不变形,有什么思路呢?我用了exactfit模式,能保证一屏显示完,但页面被压扁了,用fixedheight模式也能保证一...

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

42. 屏幕适配-自动横屏 [ 82%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#232628"; showText(); })(); function showText() { var text = new Text(); text.text = "Orientation-Landscape"; te...

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

43. 屏幕适配-自动竖屏 [ 82%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage.bgColor = "#232628"; showText(); })(); function showText() { var text = new Text(); text.text = "Orientation-Portrait"; text....

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

44. 输入设备-摇一摇 [ 82%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.showShakePic(); this.showConsoleText(); this.startShake(); } showShakePic() { const Sprite = Laya.Sprite; let shakePic = new Sprite(); s...

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

45. 动画-SWF动画 [ 82%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createMovieClip(); })(); function createMovieClip() { var mc = new MovieClip(); mc.load(SWFPath); mc.x = (Laya.stage.width - MCWidth) / 2; mc.y = (Laya...

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

46. 动画-SWF动画 [ 82%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMovieClip(); } createMovieClip() { const MovieClip = Laya.MovieClip; const SWFPath = "res/swf/dragon.swf"; let MCWidth = 318, MCHe...

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

47. 文本-字数限制 [ 82%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createInput(); })(); function createInput() { var inputText = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputTe...

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

48. 屏幕适配-自动竖屏 [ 81%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage.bgColor = "#232628"; this.showText(); } showText() { const Text = Laya.Text; let text = new Text(); text.text = "Or...

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

49. 屏幕适配-自动横屏 [ 81%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#232628"; this.showText(); } showText() { const Text = Laya.Text; let text = new Text(); text.text = "...

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

50. laya.d3.math.BoundBox [ 81%]

...gt;, out:BoundBox):void[static] 从顶点生成包围盒。 BoundBox  getCenter(out:Vector3):void 获取中心点。 BoundBox  getCorners(corners:Vector.<Vector3>):void 获取包围盒的8个角顶点。 BoundBox  getExtent(out:Vector3):void 获取范围。 BoundBox  merge(box1:BoundBo...

来源: Laya2.0_api 发布时间: 20190513