大约有 553 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0059 秒)
Laya_社区(514) Laya2.0_文档(17) Laya3.0_文档(12) Laya3.0_api(4) Laya2.0_api(2) laya_api(2) Laya_示例(1) Laya2.0_示例(1)
...的一个图片吗? //2D加载图集 var texture: Laya.Texture = Laya.loader.getRes("magic/sg.png"); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture, 0, 0); Laya.stage.addChild(sp); //3D加载图集 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMe...
来源: Laya_社区 发布时间: 20180331
...CreateImage中onerror中做了处理的。但是wxMini环境我们却用的Loader中的onCreateImage onerror没做任何处理。 var onerror = function () { clear(); delete MiniFileMgr.fakeObj[sourceUrl]; ...
来源: Laya_社区 发布时间: 20200427
....loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init));
来源: Laya_社区 发布时间: 20171116
...sers/administrator/documents/myLaya/bin/libs/laya.core.js:452:29) at LoaderManager.__proto._endLoad (file:///D:/Users/administrator/documents/myLaya/bin/libs/laya.core.js:11962:12) at Loader.onLoaded (file:///D:/Users/administrator/documents/myLaya/bin/libs/laya.core.js:11941:11) a...
来源: Laya_社区 发布时间: 20170518
...Laya.View.regComponent("ScaleButton", ScaleButton); Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame)); } private loadGame(): void { var resArray = [ { url: "res/atlas/lobby/cre...
来源: Laya_社区 发布时间: 20181213
...取失败,请检查后重新编译。 localToGlobal坐标转换 请问下loader如何强制加载一个文件,避免浏览器的缓存 用Mac下Unity5.6.2f1导出的模型在Mac浏览器显示正常,发布到移动端不显示模型,但是顶点数面数都有 我的tieldmap生成的json文件...
来源: Laya_社区 发布时间: 20151104
... content && (this._data=content); if (this._cache)Loader.cacheRes(this._url,this._data); this._customParse=false; this.event("progress",1); this.event("complete",(this.data instanceof Array)? [this.data] :this.data); } ...
来源: Laya_社区 发布时间: 20180101
...请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: Laya.loader.load().on(Event.ERROR,this,onError); 试一下 2018-01-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 132*****180 相关问题 请问LayaAir中如何使...
来源: Laya_社区 发布时间: 20180130
...n: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let...
来源: Laya_社区 发布时间: 20170511
...用预设 ``` 下面采用伪代码: 先声明一个预设变量 {Laya.loader.create("prefab/预设名字.json",Handler.create(this,onComplete)); } private function onComplete(obj:Object):Void{ 一个预设变量.json = ojb 一个sprite = Pool.getItemByCreateFun("自己起一个名字", this.一...
来源: Laya2.0_文档 发布时间: 20210714