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

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

331. 按钮加载皮肤丢失 [ 69%]

...码 先预加载 skinsSecond.push( { url:"allResources/qfbutton.png", type:Loader.IMAGE }); 然后就是一些和服务器交互的操作了,在接到某一条数据,需要用到资源的时候的代码; for (var i:Number = 0; i < allArea.length;i++) {                 var but:Bu...

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

332. 预加载结束之后还是报lose skin [ 69%]

预加载结束之后还是报lose skin private loadRes():void{ Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } ...

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

333. 关于功能模块资源回收预疑问 [ 69%]

...ts.push("res/apes/monkey2.png"); assets.push("res/apes/monkey3.png"); Laya.loader.load(assets, Handler.create(this, onAssetsLoaded)); private function onAssetsLoaded():void { for(var i:int = 0, len:int = assets.length; i < len; ++i) { var asset:Image = assets[i]; //查看log,清理前资源一...

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

334. 高级应用-实时阴影 [ 69%]

...糊等级,越大越高,更耗性能 directionLight.shadowPCFType = 3; Laya.loader.create([ "../../res/threeDimen/staticModel/grid/plane.lh", "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh" ], Laya.Handler.create(this, onComplete)); var _quaternion = new Laya.Quaternion(); Laya.timer.frameL...

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

335. 微信小游戏开放域(ActionScript-小游戏适配文档-微信小游戏) [ 69%]

...。 ```typescript if(Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Handler.create(this,function(){ //加载完成 //使用接口将图集透传到子域 MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将jso...

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

336. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 69%]

...= Browser.window.URL.createObjectURL(blob);//创建一个url对象; //用loader来加载url Laya.loader.load(url, Handler.create(this,showImg,[url]),null,Loader.IMAGE); } private function showImg(url:String):void { var t:Texture = Laya.loader.getRes(url); var ape:Sprite = new Sprite(); ape.graphic...

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

337. 咨询在Laya.Sprite3D中,是否含有类似于 Sprite 中的getbounds函数 [ 69%]

...的,所以不能在下一行代码立刻获取数据,推荐使用Laya.loader.create yinglei999 • 2017-11-17 19:10 1.数据都为零,需要获取的数据需要在资源加载的回调中进行 我不太明白,在Laya.MeshSprite3D.load 这个函数中只有一个参数是具体的地址 而...

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

338. laya3D导入动画材质在安卓手机和电脑上显示正常,在苹果手机显示异常 [ 69%]

...;, "res/maze/img/demo/toolClock/Conventional/puzzleB.lh" ]; Laya.loader.create(this.resource, Laya.Handler.create(this, this.onLoadFinish)); } private onLoadFinish() { //初始化场景 this.scene = new Laya.Scene3D(); Laya.stage.addChild(this.scene); this.scene.ambientColor = new Laya.Vec...

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

339. 微信小游戏开放域(JavaScript-小游戏适配文档-微信小游戏) [ 69%]

...``typescript if(Laya.Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用...

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

340. 加载一个txt文件 getRes出来类型为string 能转换成数组吗 [ 69%]

...载一个txt文件 getRes出来类型为string 能转换成数组吗 Laya.loader.load("res/text.txt", Handler.create(this, onAssetLoaded1), null, Loader.TEXT); var pic1 = Loader.getRes("res/2D特效/text.txt"); console.log(typeof pic1); 输出的类型为string 2017-06-20 添加评论 免费帖 --> ...

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