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

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

1. laya.net.URL_API3.0 [ 100%]

...lic/Protected All Inherited Externals Only exported Menu Globals "laya/net/URL" URL Class URL URL 提供URL格式化,URL版本管理的类。 引擎加载资源的时候,会自动调用formatURL函数格式化URL路径 通过basePath属性可以设置网络基础路径 通过设置customFormat...

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

2. laya.net.URL [ 99%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames URLProperties | Methods Packagelaya.netClasspublic class URLInheritanceURL Object URL 提供URL格式化,URL版本管理的类。 引擎加载资源的时候,会自动调用formatURL函数格式化URL路径 通过basePa...

来源: Laya2.0_api 发布时间: 20190513

3. laya.net.URL [ 99%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames URLProperties | Methods Packagelaya.netClasspublic class URLInheritanceURL Object URL 类用于定义地址信息。 Public Properties PropertyDefined By  basePath : String[static] 基础路径。URL  customFormat : Fu...

来源: laya_api 发布时间: 20170929

4. URL的代码修改建议 [ 99%]

URL的代码修改建议 URL.formatURL=function(url,base){ if (!url)return "null path"; //if (url.indexOf(":")> 0)return url;   这里建议是先执行customFormat 再去执行if (url.indexOf(":")> 0)return url;  因为用户可能有特殊的customFormat流程,所以应该是这两句...

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

5. 小游戏环境下 声音的缓存机制导致更换声音文件失败 [ 99%]

...音文件失败 在wxmini中关于声音的管理 __proto.load = function (url) {             url = URL.formatURL(url);             this.url = url;             this.readyUrl = url;             if (MiniSound._audioCache[this.readyUrl]) {        ...

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

6. laya.resource.AssetDb_API3.0 [ 98%]

...rarchy AssetDb Index Properties metaMap shaderNameMap uuidMap inst Methods URL_to_UUID_async UUID_to_URL UUID_to_URL_async getMeta getSubAssetURL resolveURL shaderName_to_URL shaderName_to_URL_async Properties metaMap metaMap: Record<string, any> Defined in laya/resource/AssetDb.ts:24 元资...

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

7. 资源版本问题 [ 98%]

...ginLoad)) function beginLoad() { //加载LOADING资源 Laya.loader.load([{ url: "res/atlas/icon.atlas" }, { url: "res/atlas/human.atlas" }], Laya.Handler.create(this, progress, null, false), null, Laya.Loader.ATLAS) } function progress() { (function loading() { Laya.loader.load([{ url: "icon/背包...

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

8. 小游戏启用版本管理本地资源加载报错解决方案 [ 98%]

...e" || type==="htmlimage" || type==="nativeimage")return [b]this._loadImage(url);[/b] 改为: if (type==="image" || type==="htmlimage" || type==="nativeimage")return [b]this._loadImage(this._url);[/b] 再修改bin/libs/laya.wxmini.js文件的下面几处即可。 1. 大约793行 if(MiniAdpter.isZiY...

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

9. 微信小游戏加载资源问题 [ 97%]

...是png就是加载本地了。 这是什么原因~`我看代码了,baseUrl我已经设置成外部的了,怎么还会去会去本地找png图片,但是图集又是用外部的呢 附件 : --> 2020-01-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

10. 读URL parameter [ 97%]

URL parameter https://www.hello.com?index=helloJane   读URL parameter 例如: https://www.hello.com?index=helloJane 把“helloJane”放进页面的text 请问这个怎么做呢?   好像这样, 这个window.location.href 在LayaAirIDE 怎么写呢? var url = window.location.href; va...

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