• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 171 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0126 秒)

31. 使用IDE发布小游戏时,启用了版本管理会导致使用 Laya.MiniAdpter.nativefiles 定义的本地资源文件无法加载 [ 81%]

...reateImage(url,thisLoader,true); }else{ MiniFileMgr.downOtherFiles(url,new Handler(MiniImage,MiniImage.onDownImgCallBack,[url,thisLoader]),url); } } else MiniImage.onCreateImage(url,thisLoader,true); }else { MiniImage.onCreateImage(url,thisLoader,!isTransformUrl); }修改为: if (!MiniFileMgr.getF...

来源: Laya_社区 发布时间: 20181212

32. Laya.MiniAdpter.downLoadFile缓存的文件无法读取的问题 [ 81%]

...le.log("url: " + url); if (Laya.Browser.onMiniGame) { var args = {url:url, handler:null}; var handler = Laya.Handler.create(this, this.OnDownloadFileInWxOk, [args], false); args.handler = handler; Laya.MiniAdpter.downLoadFile(url, null, handler); } else { this.DoLoadData(url); } } protected DoLoadDa...

来源: Laya_社区 发布时间: 20180604

33. ToolTip鼠标悬停的使用 [ 81%]

...n; import laya.ui.TipManager; import laya.utils.Browser; import laya.utils.Handler; import ui.TestTipsUI; public class ToolTipDemo { private var _testTip:TestTipsUI;//ui弹框(IDE发布),用于鼠标悬浮提示框 private var _tip:TipManager;//实例化TipManager public function ToolTipDemo()...

来源: Laya_社区 发布时间: 20161115

34. list里面可以加入多个view吗? [ 81%]

...ui.List; import laya.ui.View; import laya.utils.Browser; import laya.utils.Handler; public class LayaAirDemo { private var list:List; public function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLo...

来源: Laya_社区 发布时间: 20170626

35. version.json版本文件会加载缓存的,看了源码也没有忽略缓存 [ 81%]

...urceVersion.type = type;             ILaya.loader.load(manifestFile, Handler.create(null, ResourceVersion.onManifestLoaded, [callback]), null, Loader.JSON);         } load没有设置忽略缓存   应该 static enable(manifestFile, callback, type = 2) {             ResourceVersion....

来源: Laya_社区 发布时间: 20201218

36. 分享:LayaAir下如何加载和使用.JSON文件! [ 81%]

...使用.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():void { var json:JSON=Laya.loa...

来源: Laya_社区 发布时间: 20170807

37. 关于ASTC使用问题和建议 [ 81%]

..."; 或者是 let tex = new Laya.Texture(); tex.load("ui/guide01.png", Laya.Handler.create(this, ()=>{   this.img.texture = tex; }));   但是如果使用ASTC纹理时就会报错,需要使用异步的方式来处理         Laya.loader.load("ui/guide01.ktx", Laya.Handler.create(this, (res...

来源: Laya_社区 发布时间: 20220919

38. 微信加载文件失败没有回调 [ 80%]

...t.ERROR,this,this.LoadError) Laya.loader.load("不存在的图片URL",Laya.Handler(this,this.LoadOK));     发布成微信小游戏版本在真机微信上运行,发现这2个回调都没执行。   2018-09-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

来源: Laya_社区 发布时间: 20180920

39. 有没有js版本Tween clear相关的demo?? [ 80%]

...tTween1 = Laya.Tween.to(this.spFetch, { rotation: -170 }, 3000, null, Laya.Handler.create(this, this.leftToRight2)) } leftToRight2(){ Laya.Tween.clear(this.leftToRightTween2); this.leftToRightTween2 = Laya.Tween.to(this.spFetch, { rotation: -10 }, 3000,null, Laya.Handler.create(this, this.leftToRigh...

来源: Laya_社区 发布时间: 20180122

40. WaterPrimaryMaterial的使用 [ 80%]

...aterMaterial();         Laya.Texture2D.load("res/water1.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = tex; material.mainTexture = tex; })); Laya.Texture2D.load("res/FoamTexture.jpg", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // mate...

来源: Laya_社区 发布时间: 20181030