大约有 86 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0078 秒)
...。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:536 当前容器是否包含指定的 Node 节点对象 。 Parameters node: Node 指定的 Node...
来源: Laya3.0_api 发布时间: 20231102
...。 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
...,否则会创建失败,如果不想预加载或者需要创建完毕的回调,请使用loadAnimation(...)方法; 2. 图集路径:使用此类型创建的动画模版不会被缓存到动画模版缓存池中,如果需要缓存或者创建完毕的回调,请使用loadAtlas(...)方法;...
来源: laya_api 发布时间: 20170929
...。 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
...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
...回的数据。Loader maxTimeOut : int = 100[static] 每帧加载完成回调使用的最大超时时间,如果超时,则下帧再处理,防止帧卡顿。Loader parserMap : Object[static] 资源解析函数对应表,用来扩展更多类型的资源加载解析。Loader type : Stri...
来源: Laya2.0_api 发布时间: 20190513
...动画文件路径 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...
来源: Laya2.0_api 发布时间: 20190513
...ls",Laya.Handler.create(null,function(scene){ //加载完成后,把加载回调中返回的完整场景scene添加到舞台 Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); /** ** 省略其它代码若干,可前往Layabox官网示例或相关文档...
来源: Laya2.0_文档 发布时间: 20210714
...。 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
...所需的图集。 ```javascript //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //...
来源: Laya2.0_文档 发布时间: 20210715