大约有 142 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0032 秒)
Laya_示例(52) Laya2.0_示例(35) Laya_社区(26) Laya2.0_文档(14) Laya3.0_api(7) Laya3.0_文档(3) Laya2.0_api(3) laya_api(2)
...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createText(); })(); function createText() { var txt = new Text(); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与优秀的游戏发行商,面向Flash开...
来源: Laya_示例 发布时间: 20241124
... bgRes:String; public function Main() { Laya.init(2048,1536); Laya.stage.bgColor = "#333333"; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; bgRes = "res/bg.jpg"; addPic("res/bg.jpg", 0, 0); var txt:Text = new Text(); txt.text = "Fishing Game"; txt.color = "#FFFFFF"; txt.fontSize = 60; txt.stroke = 5; ...
来源: Laya_社区 发布时间: 20170522
... Laya.stage.scaleMode = Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //图像资源 var res:Array = [ "../../../../res/ui/vscroll.png", "../../../../res/ui/vscroll$bar.png", "../../../../res/ui/vscroll$down.png", "../../../../res/ui/vscroll$up.png", "../../../../res/ui/tree/cl...
来源: Laya2.0_文档 发布时间: 20210715
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createText(); } createText() { const Text = Laya.Text; let txt = new Text(); Laya.stage.addChild(txt); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与...
来源: Laya2.0_示例 发布时间: 20241124
...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { // 该文本自动适应尺寸 var autoSizeText = createSampleText(); autoSizeText.overflow = Text.VISIBLE; autoSizeText.y = 50; // 该文本被限制了宽度 var widthLim...
来源: Laya_示例 发布时间: 20241124
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { var vGap = 200; rotateTimeBasedText = createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.height - vGap) / 2); rotateFrameRateBasedText = createText("基于...
来源: Laya_示例 发布时间: 20241124
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { const Text = Laya.Text; // 该文本自动适应尺寸 var autoSizeText = this.createSampleText(); autoSizeText.overflow = Text.VISIBLE; autoSizeText.y = 50; // 该文本被限制...
来源: Laya2.0_示例 发布时间: 20241124
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { let vGap = 100; this.rotateTimeBasedText = this.createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.height - vGap) / 2); this.rotateFrameRateBasedText =...
来源: Laya2.0_示例 发布时间: 20241124
... Laya.stage.width; console.height = Laya.stage.height - console.y; console.color = "#FFFFFF"; console.fontSize = 50; console.align = "center"; console.valign = 'middle'; console.leading = 10; } function startShake() { Shake.instance.start(5, 500); Shake.instance.on(Laya.Event.CHANGE, this, onShake);...
来源: Laya_示例 发布时间: 20241124
...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox1/skyCube.ltc"); var skyBox = new Laya.SkyBox(); skyBox.textureCube = textureCube; camera.sky = skyBox; var teapot1...
来源: Laya_示例 发布时间: 20241124