大约有 1,613 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)
Laya_社区(1206) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(41) Laya2.0_api(13) laya_api(12)
...der.load(["res/ui/progressBar.png", "res/ui/progressBar$bar.png"], Handler.create(this, this.onLoadComplete)); } onLoadComplete() { const ProgressBar = Laya.ProgressBar, Handler = Laya.Handler; this.progressBar = new ProgressBar("res/ui/progressBar.png"); Laya.stage.addChild(this.progressBar); this....
来源: Laya2.0_示例 发布时间: 20251209
...ge.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.loader.create("LayaScene_Laya/Laya.ls",Laya.Handler.create(this,this.on3DComplete)); 报错 throw new Error("LoaderManager:unknown file("+url+") extension with: "+extension+"."); 2018-01-16 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20180116
关于Matter的初始化问题 var engine = Matter.Engine.create({ enableSleeping: true }); Matter.Engine.run(engine); var render = LayaRender.create( { engine: engine, width: GAME_CONFIG.WIDTH, height: GAME_CONFIG.HEIGHT, options: { wireframes: false } }); LayaRender.run(render); 代码是官方...
来源: Laya_社区 发布时间: 20180613
....json"; laya.net.ResourceVersion.enable(LoadingView_configUrl,Laya.Handler.create(this,this.onProLoadedBef),2); _proto.onProLoadedBef =function() { var ProResArray = [ {url : "res/atlas/com/loading.atlas" , type : Laya.Loader.ATLAS}, ]; Laya.loader.load...
来源: Laya_社区 发布时间: 20180711
...ge/BtnNo.png", "res/mainpage/BtnYes.png" ]; Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT); Laya.loader.on(Event.ERROR, this, onError); private function onAssetLoaded(texture:Texture):void{ //console.l...
来源: Laya_社区 发布时间: 20171001
...微信 SkyWalker 赞同来自: 我遇到类似的情况, 用 Laya.loader.create() 预加载 Sprite3D (2.0 插件导出的 lh) 文件 加载成功后,用 Laya.loader.getRes() 获取 let sprite3D: Laya.Sprite3D = Laya.loader.getRes(resName) as Laya.Sprite3D; 调试发现 获取到的 对象居...
来源: Laya_社区 发布时间: 20180126
...关的链接 提交 1 个回复 Laya_Aaron 赞同来自: texture类里有 create 方法 /** * 根据指定资源和坐标、宽高、偏移量等创建 <code>Texture</code> 对象。 * @param source 绘图资源 img 或者 Texture 对象。 ...
来源: Laya_社区 发布时间: 20180906
...资源释放问题 通过这种方式加载的3d角色资源 Laya.loader.create("res/role3d/mesh/563001/563001.lh",Laya.Handler.create(this,this.onModelOK),null,Laya.Sprite3D); 然后用这种方式来释放 var role3D:Laya.Sprite3D = Laya.loader.getRes("res/role3d/mesh/563001/563001.lh"); role3D.de...
来源: Laya_社区 发布时间: 20180409
...为:http://image.xxx.com/ 2. 使用Laya.loader.load("1.png",Laya.Handler.create(this,this.complete)); 3.//加载完成回调处理 complete():void{} 2018-05-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sogetsu 相关问题 请问L...
来源: Laya_社区 发布时间: 20170220
...例项目 LoaderPolicy.setup(URLResolver.solvePath("files.fst?"), Handler.create(this, function xload() : void { //无法播放 Laya.loader.load(URLResolver.solvePath("config.xml"), Handler.create(this, onConfigLoaded), null, Loader.XML); //直接调用可以正常播放 //onConfigLoaded(null); }));...
来源: Laya_社区 发布时间: 20171115