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

大约有 1,158 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)

251. laya.net.LoaderManager [ 73%]

...载的内容全部停止加载。LoaderManager  create(url:*, complete:Handler = null, progress:Handler = null, type:String = null, constructParams:Array = null, propertyParams:Object = null, priority:int = 1, cache:Boolean = true):void 根据clas类型创建一个未初始化资源的对象,随...

来源: Laya2.0_api 发布时间: 20190513

252. Laya.Scene.open 中的complete参数如何取得场景实例? [ 73%]

...何取得场景实例? 我看了Laya.Scene.open中的参数: complete:Handler (default = null) — 打开完成回调,返回场景实例(可选)   那么我要怎么从这个handler里边得到打开场景实例呢: 以下是我写的typescript代码: class Main {     onConfigLoaded(...

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

253. ts版本,开发微信小游戏,wxlocal的问题,,, [ 73%]

...p地址 然后去加载wxlocal里面的资源,   Laya.loader.load(arr, Handler.create(this, this.onLoadComplete),Handler.create(this, this.onLoading, null, false)); 发现并没有去加载这个资源,加断点发现一样走到了URL.formatURL 这个函数里面, 然后和前面设置的...

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

254. 用ide打包后的图片,Texture显示不出来? [ 73%]

...   代码 : Laya.loader.load([{url: "comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); function onLoaded(){     var aa = new Sprite();     Laya.stage.addChild(aa);     var texture = new Laya.Texture();     texture.load('comp/zzw.png' );     setTimeout( function(){   ...

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

255. clearUnLoaded的bug LayaAirIDE1.7.9 [ 72%]

...s("loadingUI"), res.download.bg("bg5")]     Laya.loader.load(arr, Laya.Handler.create(this, onComplete))     Laya.loader.clearUnLoaded()     Laya.loader.load(arr, Laya.Handler.create(this, onComplete)) }  function onComplete(){     trace("complete") } Resources already exist,is repe...

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

256. ani如何实现预加载呢? [ 72%]

...会播放一半.  附代码: Laya.loader.load("res/atlas/res.json", Laya.Handler.create(this, onLoaded), Laya.Handler.create(this, onLoading), Laya.Loader.ATLAS); 我是在onLoaded里面用游戏资源的.... 2017-07-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

257. 输入设备-指南针 [ 72%]

...ope; var RotationInfo = Laya.RotationInfo; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var Event = Laya.Event; var compassImgPath = "../../res/inputDevice/kd.png"; var compassImg; var degreesText; var directionIndicator; var firstTime = true; (function() { Laya.in...

来源: Laya_示例 发布时间: 20240930

258. Android小游戏加载不打包的图会卡资源 [ 72%]

...ao.png", type: Laya.Loader.IMAGE });   Laya.loader.load(this.assets, Laya.Handler.create(this, this.onAssetsLoaded) , Laya.Handler.create(this, this.progress, [], false));   在加载的时候ios的微信小游戏是没有问题的,但是到了Android微信客户端小游戏会卡资源,停进...

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

259. 物理碰撞器(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 72%]

...ngMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMat; //平面添...

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

260. 用javascript如何实现游戏登录游戏前的资源加载进度,如何将图片,音乐等素材加载到界面通过加载条显示加载进度 [ 72%]

...aya.loader.load([{ url: "res/ui/LoadProgress.fui", type: Loader.BUFFER }], Handler.create(this, this.loadProgress)) this.token = token; } public loadProgress() { this.progressUI = UIBase.create(LoadProgress.UI_LoadProgress, "LoadProgress", LoadProgress.LoadProgressBinder.bindAll) this.progressUI.UIM...

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