大约有 293 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)
Laya_社区(135) Laya3.0_api(87) Laya3.0_文档(36) Laya_示例(18) Laya2.0_示例(10) Laya2.0_文档(5) laya_api(1) Laya2.0_api(1)
...哪里用的不对吗? Laya.loader.load("res/1.json", Handler.create(this, createAnimation), null, Loader.ATLAS); public function createAnimation():void { var appendHtml:HTMLDivElement=new HTMLDivElement(); appendHtml.innerHTML="aa==<...
来源: Laya_社区 发布时间: 20180309
...用到的资源 Laya.loader.load("res/atlas/fly.json", Laya.Handler.create(this, onAssetLoaded), null, Laya.Loader.ATLAS); function onAssetLoaded() { var ani=new Laya.Animation();//创建animation实例 ani.loadAnimation('Ani.ani');//加载IDE制作的动画 Laya.stage.addChild(ani);//显示动画 a...
来源: Laya_社区 发布时间: 20170522
...pleteCaller:any,completeFun:Function):void { this.m_spineCopmleteFun = completeFun; this.m_completeCaller = completeCaller; this.m_curLoadingUrl = url; if(this.isLoaded(url) == false) { ...
来源: Laya_社区 发布时间: 20170801
...: private createAnimation(images: Array<string>): Laya.Animation { this.animation = new Laya.Animation(); this.ui.addChild(this.animation); this.animation.loadImages(images); this.animation.interval = 70; this.animation.play(0); return this.animation } 我不知道你是怎么做的。这...
来源: Laya_社区 发布时间: 20190325
....create("scenes/LayaScene_yueren/yueren.ls", Laya.Handler.create(this, function () { //complete func console.log("Scene loaded"); isLoaded = true; }), Laya.Handler.create(this, function (pro) { if (debug) console.log("Loading progresss : " + pro); }, null, false), Laya....
来源: Laya_社区 发布时间: 20180321
...;Laya.MeshSprite3D>}={} constructor() { } static getInstance() { return this._instance || (this._instance = new PoolManager()) } //初始化 //加载到内存中创建出来之后添加到这里面 public InitPool(key:number,MeshSprite:Laya.MeshSprite3D){ //初始化id对应对象池, 第一...
来源: Laya_社区 发布时间: 20191206
...调方法 Laya.loader.load("res/atlas/ui/boos.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.loadAnimation("test.ani"); // //添加到舞台 // Laya.stage.addChild(tl); // //播放An...
来源: Laya_社区 发布时间: 20190708
...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void close close(type?: string): void Inherited from Scene.close Defined in laya/display/Scene.ts:149 关闭场景 【注意】被关闭的场景,如果没有设...
来源: Laya3.0_api 发布时间: 20231115
...背景颜色。 Laya.loader.load("resource/ui/color.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var colorPicket:ColorPicker = new ColorPicker();//创建一个 ColorPicker 类的实例对象 colorPicket 。 co...
来源: Laya3.0_api 发布时间: 20231115
...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void close close(type?: string): void Defined in laya/display/Scene.ts:149 关闭场景 【注意】被关闭的场景,如果没有设置autoDestroyAtRemoved=tru...
来源: Laya3.0_api 发布时间: 20231115