大约有 300 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
...runCallLater(method:Function):void 如果有需要延迟调用的函数(通过 callLater 函数设置),则立即执行延迟调用函数。 Node setChildIndex(node:Node, index:int):Node 设置子节点的索引位置。 Node timerLoop(delay:int, caller:*, method:Function, args:Array = nu...
来源: Laya2.0_api 发布时间: 20190513
...节点的索引位置。 Node getComponentByIndex(index:int):Component3D 通过指定索引获得组件。 Sprite3D getComponentByType(type:*, typeIndex:int = 0):Component3D 通过指定类型和类型索引获得组件。 Sprite3D getComponentsByType(type:*, components:Vector.<Component3D>...
来源: laya_api 发布时间: 20170929
多个button如何区分 通过 for 循环 加入多个button 添加事件 this.emojiBut1.on(Laya.Event.CLICK,this,this.onEmojiBut1Click); 多个button 如何区分 点击的哪一个button 可以设置tag吗 或者通过监听事件透传? 附件 : --> 2017-04-25 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20170425
...节点的索引位置。 Node getComponentByIndex(index:int):Component3D 通过指定索引获得组件。 Sprite3D getComponentByType(type:*, typeIndex:int = 0):Component3D 通过指定类型和类型索引获得组件。 Sprite3D getComponentsByType(type:*, components:Vector.<Component3D>...
来源: laya_api 发布时间: 20170929
...ueying 赞同来自: 1、如果你的.json是在资源目录下,你可以通过预加载的方式对json进行预加载,加载完成后获取json的数据,如下 Laya.loader.load("aaa.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var js:JSON=Laya.l...
来源: Laya_社区 发布时间: 20170620
...想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图...
来源: laya_api 发布时间: 20170929
...别? 反过来找var的问题 LAYA2.0.0beata2使用场景编辑器无法通过var属性调用 scene添加View,view里面标记的var信息会丢失 请问laya2.0的子页面嵌套,var变量如何引用 场景设置UIView的var属性不起作用 var mid=method.$_TID || (method.$_TID=(this._mid+...
来源: Laya_社区 发布时间: 20180418
...无法得到子节点对象 移植了一个游戏 代码重新 写的 IDE通过.ui自动生成的ui代码报错 这样写的代码,Tween动画里面只有alpha有效果,scalex和scaley没有变化,怎么回事啊? 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in pro...
来源: Laya_社区 发布时间: 20190224
...节点的索引位置。 Node getComponentByIndex(index:int):Component3D 通过指定索引获得组件。 Sprite3D getComponentByType(type:*, typeIndex:int = 0):Component3D 通过指定类型和类型索引获得组件。 Sprite3D getComponentsByType(type:*, components:Vector.<Component3D>...
来源: laya_api 发布时间: 20170929
...画状态。每个状态,可以创建多个到其它状态的切换。 通过下图,可以清晰了解这四个部分的关系,如图1-1所示: (图1-1) 二、动画状态机组件 我们需要播放动画以及使用动画状态机的对象都需要添加 Animator 组件,该组件是...
来源: Laya3.0_文档 发布时间: 20251010