大约有 1,557 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0059 秒)
...) { const graphics = new Laya.Sprite(); this.owner.addChild(graphics); this.addBoundaryLabels(); } private addBoundaryLabels() { const minXLabel = new Laya.Text(); minXLabel.text = `minX: ${this.playerScript.mapMinX}`; ...
来源: Laya_社区 发布时间: 20251125
...层。 具体的掌控顺序为加载到舞台相应顺序。 Laya.stage.addChild(底层2d容器) Laya.stage.addChild(中层3d场景) Laya.stage.addChild(上层2d容器) 2017-08-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jxfcwys ...
来源: Laya_社区 发布时间: 20170817
...1_btn为null console.log(btn1_btn); // btn1_btn.label="first"; this.myvbox.addChild(btn1); var btn2=new ui.test.view_btnUI(); var btn2_btn:laya.ui.Button=btn2.getChildByName("btn") as laya.ui.Button; // btn2_btn.label="second"; this.myvbox.addChild(btn2); var btn3=new ui.test.view_btnUI(); var btn3_...
来源: Laya_社区 发布时间: 20170725
....fontSize=60; label.text="666"; label.bold=true; label.color="#000000"; sp.addChild(label); sp.size(200,200); Laya.stage.addChild(sp); Laya.timer.frameLoop(60,this,function():void{ var htmlC:HTMLCanvas=sp.drawToCanvas(200,200,0,0); var texture:Texture=new Texture(htmlC); var sp2:Sprite=new Sprite();...
来源: Laya_社区 发布时间: 20180403
...stage.alignV = "top"; Laya.stage.alignH = "left"; let scene = Laya.stage.addChild(new Laya.Scene3D()); let camera = new Laya.Camera(0, 0.1, 100); scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); le...
来源: Laya_社区 发布时间: 20200915
...Sprite(); _parent.graphics.drawRect(0, 0, 500, 500, '#ff0000'); Laya.stage.addChild(_parent); var _child = new Sprite(); _child.graphics.drawRect(0, 0, 50, 50, '#336699'); _parent.addChild(_child);就像上面那样,我需要在addChild的时候,_child默认在_parant的左下角~按上面的方...
来源: Laya_社区 发布时间: 20170222
...toSize = true; redBox.graphics.drawRect(0,0,100,100,'#ff0000'); Laya.stage.addChild(redBox); redBox.on("click",this,function(){ trace("click redbox"); }); redBox.on("mouseover",this,function(){ redBox.graphics.clear(); redBox.graphics.drawRect(0,0,100,100,'#00ff00'); }); redBox.on("mouseout",this,fu...
来源: Laya_社区 发布时间: 20170710
...anelRotationTest(Laya.Sprite); testSpriteRotation.pos(300,260); Laya.stage.addChild(testSpriteRotation); var testPanelRotation:PanelRotationTest = new PanelRotationTest(Laya.Panel); testPanelRotation.pos(1000,260); Laya.stage.addChild(testPanelRotation); Laya.Tween.to(testPanelRotation,{rotation:720...
来源: Laya_社区 发布时间: 20170814
...eenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var layaMonke...
来源: Laya_社区 发布时间: 20180614
...我的第一行要换行我的第一行要换行</span>"; Laya.stage.addChild(html); var sp = new Laya.Sprite(); sp.graphics.drawRect(0, 0, 300, 30, null, "#999999"); Laya.stage.addChild(sp); var sp2 = new Laya.Sprite(); sp2.graphics.drawRect(0, 30, 300, 30, null, "#999999"); Laya.stage.addChi...
来源: Laya_社区 发布时间: 20250906