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

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

191. dialog 里的数据已经获取到了,也赋值了但是页面没跟新,addChild好像无效果 [ 50%]

...d']; var foodtxt = res.data[X]['n_number']; fooddata[X] = { food: { skin: 'comp/food' + foodid + '.png' }, food_txt: { text: foodtxt } // console.log(); } } console.log('+++++++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSource = fooddata;  //实例化角色容器 v...

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

192. 发布时勾选重新生成图集会生成分辨率错误的图集导致图集错乱 [ 50%]

...就是图集的分辨率不对。附件已经给了,请注意res/atlas/comp.png 这张图的分辨率,比正确的图宽和高都多了像素 lookdczar • 2017-12-31 23:21 另外一个人也和我出现了一样的问题 https://ask.layabox.com/question/10105 lookdczar • 2017-12-31 23:32 后...

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

193. 请问layaide如何创建一个复合的Button [ 49%]

...如下) 建一个layaAir IDE项目,在项目文件夹内的laya/assets/comp下找到Button的皮肤   默认Button的皮肤为3态,即弹起、经过、按下 当然,也可以做成一态、二态的皮肤 根据皮肤的状态设置下StateNum属性,否则按钮切割状态不对将导...

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

194. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 49%]

...代码如下: var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = funct...

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

195. list只能显示一个图片 [ 49%]

...height = 100; this.list1.vScrollBarSkin = ""; this.list1.hScrollBarSkin = "comp/hscroll.png"; this.list1.renderHandler = new Laya.Handler.create(this,this.onRenderList); this.list1.selectHandler = new Laya.Handler.create(this,this.onListSelect)设置renderHandler和selectHandler, _proto.onListSelect...

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

196. 仿<蚂蚁森林>案例——含C/S端源码 [ 49%]

...会撞歪物体,导致旋转角度改变? (附源码Laya+Unity) lose skin comp/button.png 错误,全部按照UI案例来的呀 关于layabox案例下载 技术文档那个简单3D例子 as3源码资源有吗?打网球那个哈 发布后的js能不能全部变成.min.js(就像egretwing发版后...

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

197. 为什么pannel里显示两张同样的图片显示不出来,只能显示一张 [ 48%]

...new Laya.Panel(); this.panel.size(720, 1136); this.panel.vScrollBarSkin = "comp/vscroll.png"; Laya.stage.addChild(this.panel); var img:Laya.Image = new Laya.Image(); img.skin = "res/GameBG2.jpg" this.panel.addChild(img) var img1:Laya.Image = new Laya.Image(); img1.y = 1136; img1.skin = "res/GameBG2....

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

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

199. 下拉选项框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...ff"; this.combobox.selectedIndex = 1; this.combobox.scrollBarSkin = "atlas/comp/vscroll.png"; } } 二、通过代码创建ComboBox组件 在进行书写代码的时候,免不了通过代码控制UI,创建UI_ComboBox类,通过代码设定ComboBox相关的属性。下述示例演示了如何通...

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

200. 隐藏默认的虚拟键、屏蔽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