大约有 1,291 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0061 秒)
Laya_社区(1019) Laya2.0_文档(79) Laya3.0_文档(55) Laya_示例(51) Laya3.0_api(44) Laya2.0_示例(39) laya_api(2) Laya2.0_api(2)
...果,官方可有解决方案,以下为示例代码: var sprite= Laya.loader.getRes(this._stlurl) as Laya.Sprite3D; this.skill = Laya.Sprite3D.instantiate(sprite); target.addChild(this.skill); this.Play(); 这种卡顿在PC谷歌浏览器上不明显,但手机上就很明显了,另外在...
来源: Laya_社区 发布时间: 20180425
...createChildren(); let assets = [ { url: "res/atlas/ui/shared.atlas", type: Loader.ATLAS }, { url: "res/atlas/ui/myview.atlas", type: Loader.ATLAS }, { url: "view/MyView.json", type: Loader.JSON }, ] Laya.loader.load(assets, Handler.create(this, this.onLoaded)); } private onLoaded():void { this.creat...
来源: Laya_社区 发布时间: 20180113
...I DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderProperties | Methods | Events | Constants Packagelaya.netClasspublic class LoaderInheritanceLoader EventDispatcher Object Loader 类可用来加载文本、JSON、XML、二进制、图像等资源。 Public Properti...
来源: Laya2.0_api 发布时间: 20190513
...第一次没缓存的情况下 动画只会播放一半. 附代码: Laya.loader.load("res/atlas/res.json", Laya.Handler.create(this, onLoaded), Laya.Handler.create(this, onLoading), Laya.Loader.ATLAS); 我是在onLoaded里面用游戏资源的.... 2017-07-01 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20170701
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture =...
来源: Laya2.0_示例 发布时间: 20251130
...:LayaAir下如何加载和使用.JSON文件! package { import laya.net.Loader; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():v...
来源: Laya_社区 发布时间: 20170807
...不能在native环境下手动载入若干脚本并执行。 ``` Laya.loader.load("http://118.17.23.1:9877/xxx.js", Handler.create(this, onLoad));//as3 ``` 2017-10-25 2 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20171025
...音乐文件太大 播放延迟 Laya 背景音乐太大 预加载 Laya.loader.load 音乐 Laya.SoundManager.playMusic 播放 会出现延迟效果 Laya.loader.load(['remote/music/' + this.soundUrl + '.mp3'], new Laya.Handler(this, () => { thi...
来源: Laya_社区 发布时间: 20201102
...ing = "onLoadedResJson"; // 资源配置文件加载出错 public static ONLOADERRORRESJSON: string = "onLoadError"; // 资源组加载完成 public static ONLOADGROUPCOMPLETE: string = "onLoadGroupConplete"; // 资源组加载出错 public static ONLOADGROUPERROR: string = "onLoadGroupError"; priva...
来源: Laya_社区 发布时间: 20161011
...ion): void { let uiResArray = [ { url: "res/atlas/common.json", type: Laya.Loader.ATLAS }, { url: "res/atlas/comp.json", type: Laya.Loader.ATLAS }, // 登录的UI和选角的UI { url: "res/atlas/user.json", type: Laya.Loader.ATLAS }, { url: resourcesCenter.ResourcesPathStr.PROTO_FILE_PATH, type: Lay...
来源: Laya_社区 发布时间: 20170905