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

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

31. 粒子系统-场景与粒子 [ 88%]

...LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/particle/Example_01.ls")); var camera = scene.addChild(new Laya.Came...

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

32. 动画-SWF动画 [ 88%]

...V = 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.stage.height - MCH...

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

33. 屏幕适配-自动竖屏 [ 88%]

...V = 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 = "Orientation-Portrait"...

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

34. 屏幕适配-自动横屏 [ 88%]

...V = 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 = "Orientation-Landsca...

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

35. android旋转屏幕 半边黑屏 [ 88%]

...Laya.stage.alignH = "left"; Laya.stage.screenMode = "vertical"; Laya.stage.scaleMode = Stage.SCALE_FULL; spr = new Sprite var te:Text = new Text(); te.fontSize = 50; te.text = "内容测试"; spr.addChild(te); Laya.stage.addChild(spr); Laya.stage.on(Event.CLICK, this, function():void { if (Laya.stag...

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

36. 文本-字数限制 [ 88%]

...V = 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 - inputText.width >> 1; inpu...

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

37. 动画-SWF动画 [ 88%]

...V = 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, MCHeight = 406; let mc ...

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

38. ENOENT: no such file or directory, open 'D:\layaidehello eleasewxgameLayaSample.js.map [ 88%]

...引擎 Laya.init(600, 400, WebGL); //设置屏幕缩放模式 Laya.stage.scaleMode = Laya.Stage.SCALE_NOSCALE;//不缩放屏幕 //设置屏幕水平居中 Laya.stage.scaleMode = Laya.Stage.ALIGN_CENTER; //设置屏幕垂直居中 Laya.stage.scaleMode = Laya.Stage.ALIGN_MIDDLE; //设置屏幕适配...

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

39. 文本-字数限制 [ 88%]

...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText...

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

40. 文本-单行输入 [ 88%]

...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createInput(); })(); function createInput() { var inputText = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = ...

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