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

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

281. uglify压缩后的错误堆栈解析 [ 48%]

...解析 1、js的压缩工具:.laya/publish.js 中 // 压缩js gulp.task("compressJs", ["compressJson"], function () { if (config.compressJs) { return gulp.src(config.compressJsFilter, { base: releaseDir }) .pipe(sourcemaps.init({loadMaps:true})) .pipe(uglify({ mangle: { keep_fnames:true } })) .pip...

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

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

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

283. 垂直布局容器组件 · LayaAir3.0文档 · LAYABOX [ 47%]

...te btn3: Laya.Button; // 按钮皮肤资源 private skins: string = "atlas/comp/button.png"; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createvbox(); // ...

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

284. 限制区域拖动效果,为什么会无法限制呢? [ 47%]

...on.FILENAME_VERSION);  function beginLoad() { Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); }  function onLoaded() { Laya.stage.addChild(new GolfMainUI()); }   附件 : --> 2018-06-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

285. VBOX动态增加的元素没有自动布局 [ 47%]

...} // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }         完整项目请见附件。 ...

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

286. 怎么像canvas那样做到每次循环去清空一次画布,我发现每次画的时候他会把上一次的坐标也画出来,导致变形了,该如何让他每次累加的同时清空上次的路径 [ 47%]

...Laya.init(500, 300, Laya.WebGL); var bg = new Laya.Sprite(); bg.loadImage("comp/hunter.jpg"); this.addChild(bg); Laya.timer.frameLoop(1,this,this.move); // drawSomething(); } move() { sp = new Laya.Sprite(); Laya.stage.addChild(sp); //画曲线 if(x<100){ x++; } sp.graphics.clear(); sp.graphics.d...

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

287. 水平布局容器组件 · LayaAir3.0文档 · LAYABOX [ 47%]

...te btn3: Laya.Button; // 按钮皮肤资源 private skins: string = "atlas/comp/button.png"; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createHbox(); // ...

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

288. 内存释放问题 [ 47%]

...ew Laya.Dictionary(); constructor() { } static gameLoading(name: string, onCompleted: Function): void { let uiResArray = [ { url: "res/atlas/common.json", type: Laya.Loader.ATLAS }, { url: "res/atlas/comp.json", type: Laya.Loader.ATLAS }, // 登录的UI和选角的UI { url: "res/atlas/user.json", ty...

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

289. 隐藏默认的虚拟键、屏蔽APP窗口弹出脚本错误信息 的问题 [ 47%]

...lse return false; } function LoadRes() { var resArray = [ {url: "res/atlas/comp.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh2.json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComplete)) }...

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

290. 给图片节点添加新创建的图片,会报这个错:node._setParent is not a function [ 47%]

...+) { let iNum = Math.round(Math.random() * this.intMaxLove); let imgSrc = "comp/heart"+iNum+".png"; let imgLove = new Image(imgSrc); console.log("imgLove ==="+imgLove); console.log("imgSrc === "+ imgSrc); //imgLove.pos(iRows*this._x + 120 , iColumns*this._y + 320); this.imageBg.addChild(imgLove); } ...

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