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

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

381. 弹窗视图组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...Dialog(); let bg: Laya.Image = new Laya.Image(this.assets[0]); this.dialog.addChild(bg); let button: Laya.Button = new Laya.Button(this.assets[1]); button.name = Laya.Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this.CLOSE_BTN_WIDTH - this.CLOSE_BTN_PADDING, this.CLOSE_BTN_PADDING); this.dialog.addC...

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

382. laya.display.Stage [ 57%]

...只有一个stage实例,此实例可以通过Laya.stage访问。Stage addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node clearTimer(caller:*, method:Functio...

来源: laya_api 发布时间: 20170929

383. laya.d3.core.Camera_API3.0 [ 57%]

...sible _needRenderGamma _processActive _updateCameraRenderData addAllLayers addChild addChildAt addChildren addCommandBuffer addComponent addComponentInstance addLayer bubbleEvent callLater clearTimer clone contains convertScreenCoordToOrthographicCoord destroy destroyChildren event frameLoop frameOn...

来源: Laya3.0_api 发布时间: 20231115

384. 我打印laya.stage时看到有个_width 但是我打印laya.stage._width 得到值和之前看到的不一样 [ 57%]

...何截取小数点之前的数字 sprite设置了cacheas,removechild再addchild之后原先设置的cacheas无效,通过监测面板可以看到。请问这是不是bug? LayaAir IDE 1.7.15 beta 九宫格在ie11下有缝隙,希望得到关注和解决! 问题状态 最新活动: 2018-06-13 ...

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

385. 请大家帮助优化一下这个抛物线的代码 [ 57%]

...ite(); this.body.loadImage("war/ball.png"); this.body.pivot(12,12); } this.addChild(this.body); Laya.timer.frameLoop(1,this,this.animate); } private animate(e):void{ this.body.rotation += 10; } } class Main{ private ball:Ball; private targetX:number = 600; private targetY:number = 300; private cent...

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

386. laya.ui.List [ 57%]

... Inherited Public Methods Show Inherited Public Methods MethodDefined By addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node  addItem(souce:Object):void 添...

来源: laya_api 发布时间: 20170929

387. 2D光遮挡器与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...createLightOccluder(): void { this.lightOccluder.pos(233, 265); this.owner.addChild(this.lightOccluder); let lightOccluderComponent = this.lightOccluder.addComponent(Laya.LightOccluder2D); lightOccluderComponent.canInLight = true; lightOccluderComponent.outside = true; let poly: Laya.PolygonPoint2D ...

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

388. 使用typescript开发项目,解决文件引用顺序问题 [ 56%]

...输入地址运行//main.js import txt from './helloworld.js' Laya.stage.addChild(txt) //helloworld.js var txt = new Laya.Text(); txt.text = "Hello Layabox"; txt.color = "#ffffff"; export default txt  二、发布 安装工具,在ide上使用快捷键【ctrl+` 】打开终端,输入下面指令...

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

389. laya.display.Animation [ 56%]

...efined By  Animation() 创建一个新的 Animation 实例。 Animation addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加...

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

390. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 56%]

...s(400,600); skeleton.on(Laya.Event.MOUSE_DOWN, this, dragFunc); Laya.stage.addChild(skeleton); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.height)...

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