大约有 742 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0074 秒)
Laya_社区(483) Laya3.0_api(157) Laya2.0_文档(27) Laya2.0_api(27) laya_api(25) Laya3.0_文档(20) Laya2.0_示例(3)
...width,sp.height); })); Laya.stage.addChild(sp); loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 直接调用size设置: Laya.loader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); var sp=new...
来源: Laya3.0_文档 发布时间: 20251010
...。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 。 Parameters node: Node 指定的 Node...
来源: Laya3.0_api 发布时间: 20231115
...件"); ProgressBar.value=(1-loadcount/length)*100; } } //资源加载完毕回调函数 function LoadResComplete() { ProgressBarPage.dispose(); new LoginView; } } })(); })(); 删除 回复melody0529 • 2017-12-07 15:14 2017-12-07 0 0 分享 微博 QZONE 微信 melody0529 赞同来自: 运...
来源: Laya_社区 发布时间: 20171207
...。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是需要传递多个参数 p1,p2,p3,...可以使用数组结构如:[p1,p2,p3,...] ;如果需要回调单个参数 p ,且 p 是一个数组,则需要使用结构如:[p],其他的单...
来源: Laya3.0_api 发布时间: 20231115
...动画文件路径 complete:Handler (default = null) — 加载完成的回调函数 aniMode:int (default = 0) — 与Skeleton.init的aniMode作用一致 paused()method public function paused():void 暂停动画的播放 play()method public function play(nameOrIndex:*, loop:Boolean, force:Bo...
来源: laya_api 发布时间: 20170929
...是在需要频繁执行的逻辑中,比如帧循环和MOUSE_MOVE事件回调函数里面。 getGraphicBounds()method override public function getGraphicBounds(realSize:Boolean = false):Rectangle 返回此实例中的绘图对象( Graphics )的显示区域,不包括子对象。 Parameters r...
来源: Laya2.0_api 发布时间: 20190513
...。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 。 Parameters node: Node 指定的 Node...
来源: Laya3.0_api 发布时间: 20231115
...。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 。 Parameters node: Node 指定的 Node...
来源: Laya3.0_api 发布时间: 20231115
... } public conectToServer(): void { //“连接”按钮的回调 if (this.connected) return; super.connect(IP, PORT); } //////////////////////////////////// protected _onOpen(...args: any[]): void { ...
来源: Laya_社区 发布时间: 20170602
...new Laya.Handler的方式,也可以采用Laya.Handler.create(this,this.回调,null,false); 最后一个参数设置成false的意思就是用一次不回收,一直存在。感觉你Handler出问题应该是这个原因导致的。 2021-07-01 0 1 分享 微博 QZONE 微信 156*****628 赞同来...
来源: Laya_社区 发布时间: 20210701