• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,614 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0052 秒)

311. laya.resource.BaseTexture_API3.0 [ 80%]

...dex Constructors constructor Properties _id destroyedImmediately lock name url uuid DEBUG Accessors anisoLevel baseMipmapLevel compareMode cpuMemory defaultTexture destroyed dimension filterMode format gammaCorrection gammaSpace gpuMemory height id maxMipmapLevel mipmap mipmapCount obsolute referenc...

来源: Laya3.0_api 发布时间: 20231115

312. 分享一下,自定义鼠标样式 [ 80%]

...鼠标样式 研究了鼠标样式,查了论坛看到有说Mouse.cursor="url('mouse.png')";这样使用的,但是试了试不管用。折腾了一下看看为啥失效了,试了几十次终于搞定可以使用了 Laya.Mouse.cursor = 'url("comp/image.png"),auto',或者Laya.Mouse.cursor = 'ur...

来源: Laya_社区 发布时间: 20180126

313. 高级应用-寻路导航 [ 80%]

...how(); this.path = new Array(); //预加载所有资源 var resource = [ { url: "../../res/threeDimen/scene/TerrainScene/XunLongShi.ls", clas: Laya.Scene, priority: 1 }, { url: "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "../../res/threeDimen...

来源: Laya_示例 发布时间: 20240930

314. DOMException报错 [ 80%]

...yonghua5416 • 2017-08-25 09:47 AudioSound类的play方法 177行 channel.url = this.url; 提示这个url报错 yonghua5416 • 2017-08-25 09:49 应该是切换,播放背景音乐时报错的 yonghua5416 • 2017-08-25 10:20 确定是切换背景音乐的导致的报错

来源: Laya_社区 发布时间: 20170824

315. 为何我加载spine的动画drawcall会那么高,shader的指标也很高 [ 80%]

...-01 0 2 分享 微博 QZONE 微信 yzhkof 赞同来自: public getSpineAni(url:string,completeCaller:any,completeFun:Function):void         {             this.m_spineCopmleteFun = completeFun;             this.m_completeCaller = completeCaller;             this.m_curLoadingUrl ...

来源: Laya_社区 发布时间: 20170801

316. 资源加载,提示不识别路径 [ 79%]

...资源加载,提示不识别路径 //加载3D资源 Laya.loader.create([{url:"LayaScene_Demo/Demo.ls","type":Laya.Scene}, {url:"LayaScene_Scene/Scene.ls","type":Laya.Scene}, {url:"LayaScene_People/People.lh","type":Laya.Sprite3D}], Laya.Handler.create(this,this.on3DComplete)); 报错提示 message...

来源: Laya_社区 发布时间: 20181228

317. loadImage 加载图片,怎么清理当前正在加载的图片 [ 79%]

...机需要清理这些加载的图片,用了    Laya.loader.cancelLoadByUrl(_urlVo.url); Laya.loader.clearTextureRes(_urlVo.url); Laya.loader.clearRes(_urlVo.url)    但是在某些网络或者手机很卡的情况下,并不能全部移除掉,还会继续下载残留在内存中。。而且...

来源: Laya_社区 发布时间: 20200420

318. LayaAir复杂数据对象 预加载 [ 79%]

...给一个正确的写法 var arr:Array = new Array(); arr[0] =new Object(url:"image jpg/a/a{0001}.jpg", total:25,music:"music/a.mp3"); arr[1] =new Object(url:"image jpg/b/b{0001}.jpg", total:35,music:"music/b.mp3"); arr[2] =new Object(url:"image jpg/c/c{0001}.jpg", total:18,music:"music/c.mp3"); /*...

来源: Laya_社区 发布时间: 20160505

319. 全局动画不能加载 [ 79%]

...ame===void 0)&& (name=""); if (name)this._setFramesFromCache(this._url+"#"+name); this._isPlaying=true; this.index=((typeof start=='string'))? this._getFrameByLabel(start):start; this.loop=loop; if (this._frames && this._frames.length > 1 && this.interval > 0){ this.tim...

来源: Laya_社区 发布时间: 20161006

320. 分享个资源加载的方法,类似白鹭的加载方式 [ 79%]

.../ public static getRes(resName:string, isAtLas: boolean = false): any{ var url: string; if(!isAtLas){ for(var j in RES.resources){ if(RES.resources[j].name == resName){ url = RES.resources[j].url; break; } } }else{ url = resName; } var src = Laya.Loader.getRes(url); return src; } }[/i][/i] 附件 : ...

来源: Laya_社区 发布时间: 20161011