大约有 146 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0060 秒)
Laya3.0_api(66) Laya_社区(49) Laya2.0_文档(15) Laya2.0_api(5) Laya2.0_示例(5) laya_api(2) Laya3.0_文档(2) Laya_示例(2)
...t); let partPath = "res/aixin_bao.part"; Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } onAssetsLoaded(settings) { // 当load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源 ...
来源: Laya_社区 发布时间: 20190704
...lock=true的资源。 Returns void Static load load(url: string, complete: Handler): void Defined in laya/d3/core/Avatar.ts:35 加载Avatar文件。 Parameters url: string Avatar文件。 complete: Handler 完成回掉。 Returns void Globals "laya/d3/core/Avatar" Avatar constructor destoryedImmedia...
来源: Laya3.0_api 发布时间: 20231102
... xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE, this, completeHandler); xhr.once(Laya.Event.ERROR, this, errorHandler); xhr.send("http://192.168.10.108:35553/re ... ot%3B, "", "get", "arraybuffer"); function completeHandler(data) { //加载完成返回的data是arraybuffer; //..........
来源: Laya_社区 发布时间: 20180201
... Laya.loader.load([{ url: zipUrl, type: Laya.Loader.BUFFER }], null, Laya.Handler.create(this, this.onLoadCfg, null, false)).then( (value) => { JSZip.loadAsync(value).then( (zipData: JSZip) => { ...
来源: Laya_社区 发布时间: 20230208
...所以加载时要写上类型 Laya.loader.load([{url:url,type:"image"}], Handler.create(this,function(){ //接下来 }));5.接下来回调,卸载之前的资源 Laya.loader.clearRes(oldUrl);6.加载Texture2D 这样就原图片地址是个Texture2D,生成的URL地址是个Texture 2019-02-19 0...
来源: Laya_社区 发布时间: 20181221
...rls.push(`${this.ANIMATION_PATH}move${i}.mc`); Laya.loader.load(urls, Laya.Handler.create(this, () => { for (let i = 1; i <= 8; i++) { const clipPath = `${this.ANIMATION_PATH}move${i}.mc`; // 检查资源是否存在 if (Laya.loader.getRes(clipPath)) { this.loadedClips.push(clipPath); } } cons...
来源: Laya_社区 发布时间: 20251211
... Parameters url: string Returns boolean load load(url: string, complete?: Handler): Promise<void> Defined in laya/resource/Texture.ts:277 加载指定地址的图片。 Parameters url: string 图片地址。 Optional complete: Handler 加载完成回调 Returns Promise<void> off off(type...
来源: Laya3.0_api 发布时间: 20231115
... Returns Sprite3D 克隆实例。 Static load load(url: string, complete: Handler): void Defined in laya/d3/core/Sprite3D.ts:77 加载网格模板。 Parameters url: string 模板地址。 complete: Handler 完成回掉。 Returns void Globals "laya/d3/core/Sprite3D" Sprite3D constructor _extra _sce...
来源: Laya3.0_api 发布时间: 20231115
... Returns Sprite3D 克隆实例。 Static load load(url: string, complete: Handler): void Inherited from PixelLineSprite3D.load Defined in laya/d3/core/Sprite3D.ts:77 加载网格模板。 Parameters url: string 模板地址。 complete: Handler 完成回掉。 Returns void Globals "laya/d3/core/refl...
来源: Laya3.0_api 发布时间: 20231102
...一个 Button 实例。 package { import laya.ui.Button; import laya.utils.Handler; public class Button_Example { public function Button_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button....
来源: Laya3.0_api 发布时间: 20231115