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

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

71. laya.ani.bone.Skeleton [ 79%]

...。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNode...

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

72. 如何给Tab里的button设置点击事件? [ 79%]

...t); } function onSelect(index) { console.log("当前选择的标签页索引为:" + index);); this.Tab_ZM.on(Event.CLICK,this,onDaoju(index)); } 想请问下,这样添加,我上面点击事件只执行一次,就连打印出onSelect里的东西也只有一次? cuixueying • 2017-...

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

73. laya.ui.Panel [ 79%]

...ddChildAt(child:Node, index:int):Node[override] 添加子节点到指定的索引位置。 Panel addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNod...

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

74. 使用getChildByName()无法得到子节点对象 [ 79%]

...      function onRender(cell,index){             //如果索引不再可索引范围,则终止该函数             if(index > json.length)return;             //获取当前渲染条目的数据             var data = json[index];      ...

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

75. laya.d3.animation.AnimationNode_API3.0 [ 78%]

...ber): AnimationNode Defined in laya/d3/animation/AnimationNode.ts:68 根据索引获取子节点。 Parameters index: number 索引。 Returns AnimationNode getChildByName getChildByName(name: string): AnimationNode | null Defined in laya/d3/animation/AnimationNode.ts:55 根据名字获取子节点...

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

76. Morn下List组件如何给每一条列表添加Click事件,是需要for吗? [ 78%]

...2个参数,一个是事件类型,一个是当前你所点击列表的索引值。根据索引值即可判断你点击的是哪一条列表,并根据该索引写下你想要执行的所有代码逻辑。 示例如下package view { import flash.events.MouseEvent; import game.ui.other.ListViewUI;...

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

77. laya.map.TiledMap_API3.0 [ 78%]

...yIndex(index: number): MapLayer Defined in laya/map/TiledMap.ts:1395 通过索引得MapLayer Parameters index: number 要找的层索引 Returns MapLayer getLayerByName getLayerByName(layerName: string): MapLayer Defined in laya/map/TiledMap.ts:1379 得到指定的MapLayer Parameters layerName: stri...

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

78. laya.d3.core.Gradient [ 78%]

...y:Number, value:int):void 更新颜色Alpha帧。 Parameters index:int — 索引。  key:Number — 生命周期,范围为0到1。  value:int — Alpha值。 updateColorRGB()method  public function updateColorRGB(index:int, key:Number, value:Color):void 更新颜色RGB帧。 Parameters index:i...

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

79. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 78%]

....addChildAt Defined in laya/display/Node.ts:264 添加子节点到指定的索引位置。 Parameters node: Node 节点对象。 index: number 索引位置。 Returns Node 返回添加的节点。 addChildren addChildren(...args: any[]): void Inherited from Node.addChildren Defined in laya/display/N...

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

80. laya.d3.core.light.DirectionLight [ 78%]

...。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNode...

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