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

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

1311. Panel初始化BUG [ 54%]

...Ready)); } private onResReady() { let panel = new Laya.Panel(); Laya.stage.addChild(panel); panel.graphics.drawRect(0, 0, 300, 300, "#ffcccc"); panel.width = 300; panel.height = 300; panel.pos(200, 300); let image = new Laya.Image(); image.skin = "comp/image.png"; image.pos(100, ...

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

1312. laya.html.dom.HTMLIframeElement_API3.0 [ 54%]

...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer contains customRender destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint g...

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

1313. laya.ui.ProgressBar [ 54%]

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

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

1314. 如何做一个心形的进度条? [ 54%]

...818760256 赞同来自: var view = new testUI(); view.pos(0,0); Laya.stage.addChild(view); view.fbar.y = 24;//这里设置没效果。。 Test.zip 2017-11-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 158187...

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

1315. laya.ui.ColorPicker [ 54%]

... 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 callLater(method:Function, args:A...

来源: laya_api 发布时间: 20170929

1316. 分享:如何为spine(龙骨)动画添加CLICK事件! [ 54%]

...=new Laya.Rectangle(-200,-200,300,300); mArmature.hitArea=rect; Laya.stage.addChild(mArmature); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName("goblin"); mArmature.play(0, false); mArmature.stop(); } function onChangeSkin() { console.log("执行了点击"); } })(); 附件 : ...

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

1317. HTMLDivElement中图文混排怎么获取实际内容大小 [ 54%]

...: " + imageHtml.contextWidth + ", " + imageHtml.contextHeight); Laya.stage.addChild(imageHtml);   上述代码在Laya中运行 正确显示了 图片 控制台输出: size: 200, 200 contextSize: 0, 0   如何获取真实大小?   2017-11-18 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

1318. 如何能够clone一个node(包括node所有的子节点, 以及所有节点上的compnent,属性) [ 54%]

....Prefab; let o:Laya.Button = prefab.create(); o.zOrder = 10000; Laya.stage.addChild(o); })); 但是如果要把状态也clone出来,并没有什么方便的方法。 2019-02-14 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新...

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

1319. laya.ui.CheckBox [ 54%]

... null, label:String) 创建一个新的 CheckBox 组件实例。 CheckBox addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node callLater(method:Function, args:A...

来源: laya_api 发布时间: 20170929

1320. laya.map.TileAniSprite_API3.0 [ 54%]

...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearAll clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fr...

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