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

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

181. laya.ui.List_API3.0 [ 72%]

... } private function onSelect(index:int):void { trace("当前选择的项目索引: index= ", index); } } } import laya.ui.Box; import laya.ui.Label; class Item extends Box { public function Item() { graphics.drawRect(0, 0, 100, 20,null, "#ff0000"); var label:Label = new Label(); label.text = "1000...

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

182. laya的animation如何每一帧的去获取回调 [ 72%]

...动timer及时器frameloop,在loop的回调里去获取ani正在播放的索引,针对索引做判断操作

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

183. laya.d3.core.particleShuriKen.module.TextureSheetAnimation [ 71%]

...随机行,type为1时有效。TextureSheetAnimation  rowIndex : int行索引,type为1时有效。TextureSheetAnimation  startFrame : StartFrame[read-only] 获取开始帧率。TextureSheetAnimation  tiles : Vector2纹理平铺。TextureSheetAnimation  type : int类型,0为whole sheet、1...

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

184. laya.ui.Tree [ 71%]

...,0点位置不变。 Sprite  selectedIndex : int 表示当前选择的项索引。 Tree  selectedItem : Object 当前选中的项对象的数据源。 Tree  selectedPath : String[read-only] 表示选择的树节点项的path属性值。 Tree skewX : Number水平倾斜角度,默认值为0。...

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

185. UI-Tab [ 71%]

...tab); return tab; } onSelect(index) { console.log("当前选择的标签页索引为 " + index); } } new UI_Tab();module laya { import Stage = Laya.Stage; import Tab = Laya.Tab; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Tab { private skins: Array = ["res/ui/tab1.png",...

来源: Laya2.0_示例 发布时间: 20240930

186. laya.display.FrameAnimation [ 71%]

...和UI的View组件默认为true。 Sprite index : int 动画当前帧的索引。 AnimationBase interval : int 动画播放的帧间隔时间(单位:毫秒)。默认值依赖于Config.animationInterval=50,通过Config.animationInterval可以修改默认帧间隔时间。 要想为某动画设...

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

187. laya.map.TiledMap_API3.0 [ 71%]

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

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

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

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

189. laya.ui.Tab [ 71%]

...0,0点位置不变。 Sprite selectedIndex : int 表示当前选择的项索引。默认值为-1。 UIGroup selectHandler : Handler 改变 Group 的选择项时执行的处理器,(默认返回参数: 项索引(index:int))。 UIGroup selection : ISelect 获取或设置当前选择的项对...

来源: laya_api 发布时间: 20170929

190. laya.d3.webxr.core.WebXRInput_API3.0 [ 71%]

...3/WebXR/core/WebXRInput.ts:164 add axis event Parameters index: number axis索引 type: string 事件类型 caller: any 事件侦听函数的执行域。 listener: Function 事件侦听函数。 Returns void addButtonEvent addButtonEvent(index: number, type: string, caller: any, listener: Function):...

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