大约有 322 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0046 秒)
... // 程序入口 class GameMain{ constructor() { Laya.init(1280,720); Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(...
来源: Laya_社区 发布时间: 20170327
...下次再用到load时加载失败 public LoadImg(url:string):void { Laya.loader.load([{ url:url, type: Laya.Loader.ATLAS }],Laya.Handler.create(this,this.Loa,null)); } private Loa():void { console.log("在又有意义有意义有意义有意义有意义有意义有意义有意义"); } public ClearI...
来源: Laya_社区 发布时间: 20180109
...les/graceful-fs/fs.js:1:37) at Module._compile (internal/modules/cjs/loader.js:956:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:...
来源: Laya_社区 发布时间: 20210420
Laya.loader.clearRes 能不能直接清除场景依赖的资源 Laya.Scene.load 既然可以直接加载场景所依赖的资源, Laya.loader.clearRes 能不能直接清除场景依赖的资源呢?? 2019-06-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20190617
...自: 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
...esInfo.__proto.event (http://127.0.0.1:59022/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:59022/game/code.js:13152:11) at Loader.onLoaded (http://127.0.0.1:59022/game/code.js:13128:10) at EventHandler.__proto.runWith (http://127.0.0.1:59022/game/code.js:...
来源: Laya_社区 发布时间: 20180317
...32628"; const monkey1Path = "https://layaair2.ldc2.layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.Ti...
来源: Laya_社区 发布时间: 20190927
...sprite3D对象 附件上传了我的工程文件。 如果是使用Laya.loader.create("model/build/warehouse1/warehouse1.lh", Laya.Handler.create(this, onComplete)); function onComplete() { //仓库原型 warehouse1 = Laya.Sprite3D.load("model/build/warehouse1/warehouse1.lh"); scene.addChild(ware...
来源: Laya_社区 发布时间: 20180104
...的二进制数据)package { import laya.display.Text; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; public class Test { public function Test() { Laya.init(550,400); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("hu.ttf",Handler.create(this,onLoaded),null,Loader.BU...
来源: Laya_社区 发布时间: 20161219
是否可以考虑改进loader 是否可以考虑在laoder中增加加载位图字体和加载JS的功能? 2016-08-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 yung 赞同来自: 加载可以,但是注...
来源: Laya_社区 发布时间: 20160815