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

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

491. Handler.create的回收问题 [ 55%]

...his.h1 = Laya.Handler.create(this, this.loadPicComplete, null, true); Laya.loader.load("res/img/1.png", this.h1); } private loadPicComplete(): void { Laya.timer.once(2000, this, this.actT); } private actT(): void { this.h2 = Laya.Handler.create(this, this.loadPicComplete, null, true); console.log(th...

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

492. 微信小游戏中不能加载proto文件 [ 55%]

...valid url "res/protobuf/Login.proto"   具体代码: (function () { var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; console.log("!____________________________________")  var ProtoBuf = Browser.window.protobuf;  // Laya.init(550, 400);  ProtoBuf.load("res/proto...

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

493. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 55%]

...tage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; //预加载资源 Laya.loader.load([this.buttonSkin, this.clipSkin, this.bgSkin], Laya.Handler.create(this, this.onSkinLoaded)); } private onSkinLoaded(): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createContro...

来源: Laya2.0_文档 发布时间: 20210714

494. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 55%]

... = ["resources/res/ui/dialog (1).png", "resources/res/ui/close.png"]; Laya.loader.load(this.assets).then( ()=>{ this.onSkinLoadComplete(); } ); } private onSkinLoadComplete(e: any = null): void { this.dialog = new Laya.Dialog(); var bg: Laya.Image = new Laya.Image(this.assets[0]); this.dialog.add...

来源: Laya3.0_文档 发布时间: 20230303

495. 发现TimeLine的一些问题,像是BUG [ 55%]

...ge { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.utils.Ease; import laya.utils.Handler; import laya.utils.Stat; import laya.utils.TimeLine; public class AirDemo { private var sp1:Sprite; private var sp2:Sprite; private var sp3:Sprite; private var timeLin...

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

496. 为何用MovieClip加载Swf会造成H5卡死,且不报错? [ 55%]

...ned 用了ByteArray的zlib.min.js后报错 runtime运行报错! 请问下loader如何强制加载一个文件,避免浏览器的缓存 本地调试加载本地图片都报错 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? unity到导出场景加载时抛异常,...

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

497. bin目录下的h5,放到服务器上,再运行的时候变得有点卡,fps很慢 [ 55%]

...作 ide compile的时候不会启动一个本地服务器吗? 使用Laya.loader.load缓存下来的文件还在res目录下吗?在编辑模式下怎么调用缓存下来的文件? 问题状态 最新活动: 2018-03-18 23:19 浏览: 953 关注: 1 人 15818760256 • 2018-07-30 14:26 您好,...

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

498. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 55%]

...png", "../../../../res/ui/tree/clip_tree_arrow.png" ]; //加载资源 Laya.loader.load(res, new Handler(this, onLoadComplete)); } /***加载资源完成***/ private function onLoadComplete(e:*=null):void { // 组装tree的数据 var treeData:String = ""; //外层循环为树的父节点(相当于...

来源: Laya2.0_文档 发布时间: 20210715

499. 使用laya官方示例代码制作微信小游戏无法显示 [ 55%]

...nLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 new laya.UI_Label(); }   上图为在layaIDE中的显示效果。   不知道具体是什么原因,希望...

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

500. 【紧急求救】误删了bin目录怎么办??? [ 55%]

...管理吗 代码模式下目录被编辑器左侧外框遮挡 请问Laya.loader.load资源缓存在哪里?能不能把这个缓存目录里的资源加入NativeFile白名单? bin目录下文件可以全部删掉,重新发布会再次生成吗? IDE中无法移动资源到另一个目录问题...

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