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

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

1041. prefeb通过网络加载时,prefab上设置的图片加载报错,请问如何处理 [ 54%]

...console出,那个list中的数据也存在,但没渲染出。 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2020-08-19 18:20 浏览: 303 关注: 1 人

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

1042. HTMLIframeElement怎么和当前页面交互 [ 54%]

...时候显示小游戏,这个是你自己控制的,加载资源用Laya.loader.load,在加载完成回调里可以跳转地址到你的小游戏,同时关闭加载界面 3、资源加载完成,我们提供了加载完成回调和加载进度回调,你可以控制你何时关掉加载界面...

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

1043. [LayaAir3]spine显示不对 [ 53%]

...Normal()来切换一下渲染方式。   例如:onEnable(): void { Laya.loader.load("swk/zhujue_wk.skel", Laya.Handler.create(this, () => { this.owner.getComponent(Laya.Spine2DRenderNode).changeNormal(); })); }   2024-10-10 0 1 分享 微博 QZONE 微信 layabox 赞同来自: 已记录,我...

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

1044. 无法触发浏览器文件上传框 [ 53%]

...n: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let...

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

1045. t._addReference is not a function [ 53%]

... llc 赞同来自: 碰到相同的问题,解决了,供参考: Laya.loader.load(chapterBG, Laya.Handler.create(this, this.onBGLoaded, [chapterBG])/* , Laya.Handler.create(this, this.onBGLoadProgress) */); 第三个参数打开在某些条件下会出t._addReference is not a function 可能是...

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

1046. 在Iphone6下Chrom:调用laya.utils.Browser.onPC返回true? [ 53%]

...false后过一段时间设置mouseWheelEnable=true;无法滚动 使用Laya.loader.load缓存下来的文件还在res目录下吗?在编辑模式下怎么调用缓存下来的文件? 编辑器选择分离模式生成TS代码时能自动在createChildren里加上createView调用代码么? Mac Chro...

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

1047. 百度小游戏 内存不断增大的情况 [ 53%]

...大的情况 __proto.onConfigLoaded=function(){ Laya.init(600,400); Laya.loader.load([{url:"res/atlas/comp.json",type:"atlas"}],Handler.create(this,this.onLoadUi)); } __proto.onLoadUi=function(){ Laya.timer.loop(100,this,this.onLoaded); } __proto.onLoaded=function(){ if(this.isOpen){ return; } this....

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

1048. layaAir TS项目如何引用protoBuf库? [ 53%]

...: // 程序入口 class GameMain{     constructor(){         var Loader = Laya.Loader;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var ProtoBuf = Browser.window.protobuf;         Laya.init(550, 400);         //加载协议...

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

1049. Handler.create的回收问题 [ 53%]

...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

1050. 滤镜的集中实现 [ 53%]

...; //设置舞台背景色 Laya.stage.bgColor="#fffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Handler.create(this,completeLoad),null,Loader.ATLAS); } public function completeLoad():void { //原始位图 createImg(200,50); //红色滤镜 createRedFilter(); //创建发光滤镜位图**/...

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