大约有 1,614 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0060 秒)
Laya_社区(1206) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(42) Laya2.0_api(13) laya_api(12)
..., 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
...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
...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
...读取是不走readfile的,第一次缓存之后后面使用都是直接create音频.src去加载 1571361226用户 • 2020-07-11 16:07 @陆仁毅: 陆哥 那播放不了是啥原因 1571361226用户 • 2020-07-11 16:08 @1571361226用户: 感谢陆哥了 1571361226用户 • 2020-07-11 17:33 不...
来源: Laya_社区 发布时间: 20200529
...行,请问怎么才能加载预制体,这个方法报错 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
...引擎需要的资源 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
...画布的背景颜色。 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
...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
...type: Laya.Loader.IMAGE }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2)); RTX截图未命名.png ============================================================================== 打印了一下 https://piggy.com/images/boss.png文件,每次都从服务器上重...
来源: Laya_社区 发布时间: 20180613
...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