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

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

121. 请问这是原因? [ 71%]

...hics.drawCircle(0,0,100,"#00CC33"); sprite.graphics = graphics; Laya.stage.addChild(sprite); //画一条直线,添加进圆 var sprite2:Sprite = new Sprite(); var graphics2:Graphics = new Graphics(); graphics2.drawLine(500,500,500,400,"#000000",2); sprite2.graphics = graphics2; Laya.stage.addChild...

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

122. TextInput TextArea 获取当前有多少行? [ 71%]

...XXXXXXXXXXXXXXXXXXXX"; text.x=200; trace(text.textField.lines); Laya.stage.addChild(text); 2017-06-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 cry_11858 相关问题 请问有没有方法能够获取“鼠标是否处于按下状...

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

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

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

124. 怎么才能显示位于Panel外部对象 [ 70%]

...为panelA,现在会在面板上加个箭头图片,命名为imgB panelA.addChild( imgB ); panelA的宽高为100,100 imgB的坐标为110,50 出现现象是:位于面板A指定宽高范围 外部的imgB无法显示 请问下怎么才能使面板外部的imgB显示出来? 2017-02-07 添加评论...

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

125. 分享一个自己做的游戏公告功能,跑马灯效果 [ 70%]

...left" this.html.style.color = "#fff" this.html.innerHTML = "" this.hornBox.addChild(this.html) this.addChild(this.hornBox) } /** 滚动动画 */ private _animate(e: Event): void { const _w = this.html.width const _x = this.html.x if (_x < -_w) { this.stop(true) } else { this.html.x -= 2 } } /** ...

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

126. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 70%]

...nish(): void { //初始化3D场景 this.scene = (<Scene3D>Laya.stage.addChild(Loader.createNodes("res/threeDimen/scene/TerrainScene/XunLongShi.ls"))); //根据场景中方块生成路径点 this.initPath(this.scene); //获取可行走区域模型 var meshSprite3D: MeshSprite3D = (<MeshSprit...

来源: Laya3.0_文档 发布时间: 20230303

127. 文本在屏幕不垂直居中 [ 70%]

...idth /2 ,tx.height / 2); tx.align="center"; tx.valign="middle"; Laya.stage.addChild(tx); } })()   2017-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 修改后的代码...

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

128. laya.ui.LayoutBox [ 70%]

...nherited Public Methods Show Inherited Public Methods MethodDefined By  addChild(child:Node):Node[override] 添加子节点。 LayoutBox  addChildAt(child:Node, index:int):Node[override] 添加子节点到指定的索引位置。 LayoutBox addChildren(... args):void 批量增加子节点 Node...

来源: Laya2.0_api 发布时间: 20190513

129. 怎样获取父类? [ 70%]

...一个页面TipsView为子类 ... ... var tipView = new TipsView(); this.addChild(tipView);   function enterNextScene() { } ... ...      //这个是TipsView.js类,我想在这个类里调用上面那个父类里enterNextScene的方法,如何获取到上面那个父类呢? var TipsView = (f...

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

130. 报告bug: graphics.drawCircle在layaair调试时,改变外框尺寸,半径未能自适应调整 [ 70%]

...aleMode = "showall"; //添加Sprite var sp = new Laya.Sprite(); Laya.stage.addChild(sp); //将sp移动到横坐标400,纵坐标300的位置 sp.pos(400,300); //绘制两条在sp的原点交叉的直线 sp.graphics.drawLine(-50,0,50,0,'#00ff00',1); sp.graphics.drawLine(0,-50,0,50,'#00ff00',1); //绘...

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