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

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

1541. Laya.URL.basePath加载不到网络资源 [ 40%]

..., type : Laya.Loader.IMAGE}, ];   Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));   Laya.URL.basePath = "https://piggy.q1.com"; var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { url: "im...

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

1542. 如何实现3d遮罩效果? [ 40%]

...oader.load(["../../../../res/threeDimen/ui/button.png"], Handler.create(null, function():void { var btn:Button = new Button(); btn.skin = "../../../../res/threeDimen/ui/button.png"; btn.label = "切换RenderTexture"; btn.labelBold = true; btn.labelSize = 20; btn.sizeGri...

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

1543. Laya.Pool用法 [ 39%]

...o     /**      * 协议对象池      * Author :Terry        * Created: 2017-08-07 09:44:25      */     export class ProtoPool {         private static _dic: Laya.Dictionary;         public static PROTO_HEAD: string = "proto_Head";         public static PROTO_BINARY_REQU...

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

1544. 关于laya无法缓存非图片、声音文件bug [ 39%]

...读取是不走readfile的,第一次缓存之后后面使用都是直接create音频.src去加载 1571361226用户 • 2020-07-11 16:07 @陆仁毅: 陆哥 那播放不了是啥原因 1571361226用户 • 2020-07-11 16:08 @1571361226用户: 感谢陆哥了 1571361226用户 • 2020-07-11 17:33 不...

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

1545. 做了一个最简单的显示微信子域的程序,但是报错Cannot read property 'USER_DATA_PATH' of undefined [ 39%]

...行,请问怎么才能加载预制体,这个方法报错 Laya.loader.create,单独运行子域项目是没问题 177*****949 • 2018-11-08 20:25 @嘿哈 还没有解决吗 ? bingo • 2018-11-16 18:03 我也出现这个问题了,怎么解决呢 bingo • 2018-11-18 10:55 Laya.MiniAdpter.ini...

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

1546. 多线程Worker · LayaAir3.3 · 引擎文档 · LAYABOX [ 38%]

...引擎需要的资源 Laya.loader.load("../atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例UI界面 var testView:ui.test.TestPageUI = new ui.test.TestPageUI(); Laya.stage.addChild(testView); } } new LayaUISample; WorkerLoader.workerPath = "libs/worker.j...

来源: Laya3.0_文档 发布时间: 20251010

1547. laya.ui.CheckBox_API3.0 [ 38%]

...画布的背景颜色。 Laya.loader.load("resource/ui/check.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var checkBox:CheckBox = new CheckBox("resource/ui/check.png", "这个是一个CheckBox组件。");//创...

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

1548. 【简单跑酷--JS版】---Lv.3 添加地板 [ 38%]

...kground.png", "res/m_background.png", "res/floor.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); 首先同样我们到runGame目录新建一个Floor.js 开始编写代码 这里 我们想一下地板有哪些功能? 1、自身从右到左...

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

1549. 请问我用网络格式加载成功后,在服务器替换image.atlas和images.png重新打开小游戏没有重新加载服务器的png,只重新加载了atlas [ 38%]

...type: Laya.Loader.IMAGE }, ];    Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));     RTX截图未命名.png ============================================================================== 打印了一下 https://piggy.com/images/boss.png文件,每次都从服务器上重...

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

1550. 网络通信 · LayaAir3文档 · LAYABOX [ 37%]

...or multiple files to load * @param {Root} root Root namespace, defaults to create a new one if omitted. * @param {LoadCallback} callback Callback function * @returns {undefined} * @see {@link Root#load} */ function load(filename, root, callback) { if (typeof root === "function") { callback = root; r...

来源: Laya3.0_文档 发布时间: 20250104