大约有 2,307 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0061 秒)
Laya_社区(1512) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya2.0_api(74) Laya3.0_文档(73) laya_api(70)
...t.bold = true; t.pivot(t.width / 2, t.height / 2); t.pos(x, y); Laya.stage.addChild(t); return t; } function animateTimeBased() { rotateTimeBasedText.rotation += 1; } function animateFrameRateBased() { rotateFrameRateBasedText.rotation += 1; } })();module laya { import Stage = Laya.Stage; import Tex...
来源: Laya_示例 发布时间: 20251209
...rite(); ccc.graphics.drawRect(0,0,50,50,'#123000'); this.addChild(ccc); //ccc.x = -30 } Laya.class(layaSlot,null,Sprite); 代码是这样的 我的想法是 在viewport之外的 应该是不会显示的 在viwport之内显示的应该是会显示的 但是实际上...
来源: Laya_社区 发布时间: 20170323
...r.spriteContainer = spriteCon; render.graphicsContainer = graphicsCon; con.addChild(spriteCon); con.addChild(graphicsCon); graphics = graphicsCon.graphics; } 现在con这个是undefined的。请问这个在哪来赋值哦。看了半天没看懂 2018-06-13 添加评论 免费帖 --> 分享 微博 QZ...
来源: Laya_社区 发布时间: 20180613
...何吓吓:请问内嵌模式直接new出来的场景是直接用Laya.stage.addchild加到场景里? 内涵tv何吓吓 • 2019-03-07 09:28 @HoJanHoi:Laya.stage.addchild是加到stage上,场景和stage是不同的概念吧我觉得,因为我理解是场景也是在stage上展示的 HoJanHoi •...
来源: Laya_社区 发布时间: 20190305
...; soundButton.y = (Laya.stage.height - soundButton.height) / 2; Laya.stage.addChild(soundButton); //创建一个Sprite充当音乐播放按钮 var musicButton: Sprite = this.createButton("播放音乐"); musicButton.x = soundButton.x + gap + soundButton.width; musicButton.y = soundButton.y; Laya.s...
来源: Laya_社区 发布时间: 20190421
...loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, fa...
来源: Laya_社区 发布时间: 20200728
... "HELLO"; txt.color = "#ffffff"; txt.x = 1136 / 2, txt.y = 320; Laya.stage.addChild(txt); txt = new Laya.Text(); txt.text = "HELLO"; txt.color = "#ffffff"; let mat = new Laya.Matrix(); mat.translate(1136 / 2, 320); txt.transform = mat; Laya.stage.addChild(txt); 2018-10-15 添加评...
来源: Laya_社区 发布时间: 20181015
...teSampleText() { const Text = Laya.Text; let text = new Text(); Laya.stage.addChild(text); text.overflow = Text.HIDDEN; text.color = "#FFFFFF"; text.font = "Impact"; text.fontSize = 20; text.borderColor = "#FFFF00"; text.x = 80; text.text = "A POWERFUL HTML5 ENGINE ON FLASH TECHNICAL\n" + "A POWERFU...
来源: Laya2.0_示例 发布时间: 20251209
....x = mStartX; mArmature.y = mStartY; mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); mArmature.on(Event.STOPPED, this, completeHandler); play(); } function completeHandler() { play(); } function play() { mCurrIndex++; if (mCurrIndex >= mArmature.getAnimNum()) { mCurrIndex = 0; } mArmature...
来源: Laya_示例 发布时间: 20251209
...sp = new Laya.Sprite(); sp.graphics.drawTexture(texture, 0, 0); Laya.stage.addChild(sp); //3D加载图集 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(64, 64))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); var materia...
来源: Laya_社区 发布时间: 20180331