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

大约有 1,557 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0059 秒)

141. [LayaAirIDE3]2d相机打包后问题 [ 83%]

...) {         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

142. 3D模型与2D地图混合,3D模型与2D地图障碍物显示层级相互穿插怎么实现? [ 83%]

...层。 具体的掌控顺序为加载到舞台相应顺序。 Laya.stage.addChild(底层2d容器) Laya.stage.addChild(中层3d场景) Laya.stage.addChild(上层2d容器) 2017-08-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jxfcwys ...

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

143. VBOX动态增加的元素没有自动布局 [ 83%]

...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

144. 舞台上有个label,我能通过截图保存成图片么 [ 83%]

....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

145. laya2.7.3 Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 83%]

...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

146. 坐标系原点 [ 83%]

...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

147. 关于graphics镂空的问题https://ask.layabox.com/question/139 [ 83%]

...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

148. webgl模式下对Panel组件旋转时Panel子对象显示错误的BUG! [ 82%]

...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

149. 3D怎么使用canvas渲染,无论怎么看都是webgl [ 82%]

...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

150. [LayaAirIDE2]富文本:HtmlDivElement是否支持垂直居中? [ 82%]

...我的第一行要换行我的第一行要换行</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