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

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

71. IOs使用手动删除本地资源再次进去加载问题 [ 87%]

...次进去加载问题 https://ask.layabox.com/question/16878 这个问题 function beginLoad(){ var res_array = [ {url : "res/atlas/loading.atlas", type : Laya.Loader.ATLAS}, {url : "res/atlas/person.atlas", type : Laya.Loader.ATLAS}, {url : "loading/progress.png", type : Laya.Loader.IMAGE}, {url : ...

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

72. 微信小游戏截图 [ 87%]

... y: 0, width: 1280, height: 720, destWidth: 1280, destHeight: 720, success:function(res:Object):void{ imagePath = res.tempFilePath;//这个就是截屏的图片地址,可以将图片生成到相册,也可以使用这个地址用来里显示 wx.saveImageToPhotosAlbum({ filePath:imagePath, success...

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

73. 加载-错误处理和进度 [ 87%]

...rt laya.utils.Handler; public class Loader_ProgressAndErrorHandle { public function Loader_ProgressAndErrorHandle() { Laya.init(550, 400); // 无加载失败重试 Laya.loader.retryNum = 0; var urls:Array = ["do not exist", "../../res/fighter/fighter.png", "../../res/legend/map.jpg"]; Laya.loader.lo...

来源: Laya2.0_示例 发布时间: 20251130

74. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 87%]

...请: 与内容相关的链接 提交 6 个回复 melody0529 赞同来自: (function(){ var Stage=Laya.Stage; var WebGL=Laya.WebGL; var config=Config; (function(){ console.log("运行程序。"); Laya.init(1280,720,WebGL); //设置适配模式 Laya.stage.alignH=Stage.ALIGN_CENTER; Laya.stage.alignV=S...

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

75. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 87%]

...age=ch&category=3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Event) { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this....

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

76. 小米登录失败 [ 87%]

小米登录失败 window["qg"].login({ success: function (res) { var data = JSON.stringify(res); console.log("OPPO登录:" + data); callBack(res); }, fail: function (res) { LogicManager.instance.toLoginSucc(); console.log("登陆失败:" + JSON.stringify(res)); } });  登陆失败:{"code":7605,...

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

77. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 87%]

...age=ch&category=3d&group=Resource&name=GarbageCollection)) ```typescript function(e:Laya.Event):void { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景";...

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

78. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 87%]

...emo一模一样。。。 // 这段代码需要在setupDemo之前执行。 (function() { // 项渲染器 var Box   = Laya.Box; var Image = Laya.Image;   var WID = 373, HEI = 85;   function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img);   t...

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

79. Sprite-新手引导 [ 87%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var HitArea = Laya.HitArea; var WebGL = Laya.WebGL; var red; var guideContainer; var tipContainer; var guideSteps = [ { x: 151, y: 575, radius: 150, tip: "../../r...

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

80. 滤镜-颜色滤镜 [ 86%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var ColorFilter = Laya.ColorFilter; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var ApePath = "../...

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