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

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

121. localToGlobal和AS3不一样? [ 71%]

...: ------(已解决)laya和AS3这里有细节区别。laya需要目标已经AddChild到舞台才有效果。     翻进去看到这句:if (!_displayedInStage || !point) return point;。。。醉了= =!~ 2017-02-27 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 是的,你只有addChild...

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

122. laya 是否多窗口开发开发??? [ 71%]

...     在官方 dialog 那个demo中,不适用show,改为 Laya.stage.addChild(dialog1) 就可实现此效果。 2017-03-31 0 1 分享 微博 QZONE 微信 cuixueying 赞同来自: LayaAir本身就是一个canvas标签,多窗口可以实现,你用js原生的方法来做即可,添加多个c...

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

123. 请问这是原因? [ 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

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

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

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

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

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

127. 分享一个自己做的游戏公告功能,跑马灯效果 [ 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

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

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

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

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

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