大约有 914 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0048 秒)
Laya_社区(693) Laya2.0_文档(89) Laya_示例(48) Laya2.0_示例(39) Laya3.0_文档(24) Laya3.0_api(19) laya_api(1) Laya2.0_api(1)
...用预设 ``` 下面采用伪代码: 先声明一个预设变量 {Laya.loader.create("prefab/预设名字.json",Handler.create(this,onComplete)); } private function onComplete(obj:Object):Void{ 一个预设变量.json = ojb 一个sprite = Pool.getItemByCreateFun("自己起一个名字", this.一...
来源: Laya2.0_文档 发布时间: 20210714
...的atlas,调用clearRes无法卸载资源 加载时时这样调用 Laya.loader.load("res/MainBlood.atlas", Laya.Handler.create(this, this.onAtlasLoaded), null, Laya.Loader.ATLAS); 卸载时这样 Laya.loader.clearRes("res/MainBlood.atlas");在Laya.Loader.loadedMap里查找是没有了,但是统...
来源: Laya_社区 发布时间: 20180305
...种文件放不同的图片。。发现加载图片时加载不了。 Laya.loader.load(["res/atlas/img/hall.json"],Laya.Handler.create(this, onLoaded),null,Laya.Loader.ATLAS);无法加载。。。怎么回事 2017-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...
来源: Laya_社区 发布时间: 20170412
...aya.display.Stage; import laya.events.Event; import laya.net.Loader; import laya.ui.Button; import laya.utils.Handler; import laya.utils.Stat; import ui.TaskUI; import view.TestView; public class LayaUISample { ...
来源: Laya_社区 发布时间: 20180425
...请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: Laya.loader.load("res/atlas/war/hero.atlas", Handler.create(this, this.onLoad), null, Loader.ATLAS); 什么意思,, 2018-03-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...
来源: Laya_社区 发布时间: 20180330
... 微博 QZONE 微信 131*****809 赞同来自: <script scr='matter.js' loader='laya'></script> <script scr = 'LayaRender.js' loader='laya'></script> <script src='LayaSample.max.js' loader='laya'></script>引用了呀 2018-07-16 0 1 分享 微博 QZONE 微信 为...
来源: Laya_社区 发布时间: 20180716
...自: SONIC3D 、sevennqi public function BBB() { Laya.init(550,400); Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("res/atlas/comp.json"); }JSON的解析和AS3的是一样的 2016-10-2...
来源: Laya_社区 发布时间: 20161027
...上测试加载服务器资源 URL.basePath = "http://212.xx.xx.xx/"; Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,loadComplete)); loadComplete(){显示自己的ui}; 项目设置选择不校验合法域名。(我没有配置域名,用IP可以吗?) 发现comp.atlas是加载下...
来源: Laya_社区 发布时间: 20190116
...3B%3B var asset = []; asset.push({ url : "res/atlas/game.atlas", type:Laya.Loader.ATLAS }); asset.push({ url : "res/atlas/bubbles.atlas", type:Laya.Loader.ATLAS }); asset.push({ url : "game/bgGame.png", type:Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,loadingCallback),nul...
来源: Laya_社区 发布时间: 20180517
...的插件的参数,你看下有没有错误 读取代码: Laya.loader.create("res/1.lh",Handler.create(this,onModelOK),null,Sprite3D); private function onModelOK():void { //添加3D场景 var scene:Scene = new Scene(); ...
来源: Laya_社区 发布时间: 20180116