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

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

271. LayaAirIDE 2.0 laya.wxmini.js 第3行报错! 创建3D项目(TypeScript),导出微信小游戏,选择了JS混淆,崩溃在 laya.wxmini.js 第3行,错误如下 [ 39%]

...layalib = function (i, e) {   (window._layalibs || (window._layalibs = )).push({ f: i, i: e }); }), window.layalib(function (i, e, t) {   console 窗口报错如下: ------------------------------------------ WAGame.js:3 gameThirdScriptErrorCannot assign to read only property 'window' of object ...

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

272. 报无法找到资源,未升级ide之前不报错 [ 39%]

...[];     for (let i: number = 0; i < len; i++) {         aniFrames.push("resources/UI/role/atlasAni2/139x/" + name + i + ".png");     }     Laya.Animation.createFrames(aniFrames, name); }     附件 : --> 2023-07-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

273. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 39%]

...le.warn(TipConfig.tips.haveNoTheChar, char); } sp.texture = tx; this.chars.push(sp); this.addChild(sp); } this.sortCharsByAlign(this._align); } /** * 水平对齐方式 */ public set align(v: string) { if (v === this._align) { return; } this._align = v; this.sortCharsByAlign(v); } public get align()...

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

274. localRotationEulerY旋转位置错误 [ 39%]

...的质量         rigidBody.mass = 10;         this.arr.push(box);         console.log("position = ",box.transform.position);         if (index == 1) {             Laya.timer.once(1000,this,()=>{                 this.setAngle(); ...

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

275. 富文本过程中我遇到的问题以及解决方法(超链接换行以及无法接收超链接鼠标事件以及br或者 标签会崩溃报错的问题) [ 39%]

... = 0, n = words.length; i < n; i++) {                     out.push(words[i]);                 }             }             if (this._children)                 this._children.forEach(function (o, index, array) {                     var _style = o._sty...

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

276. 水平滚动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 39%]

...addChild(this.text); // 滚动条皮肤资源 var skins: any[] = []; skins.push("atlas/comp/hscroll.png", "atlas/comp/hscroll$bar.png", "atlas/comp/hscroll$down.png", "atlas/comp/hscroll$up.png"); Laya.loader.load(skins).then(() => { // 创建滚动条 var hs: Laya.HScrollBar = new Laya.HScrollBa...

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

277. 垂直滚动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 39%]

...addChild(this.text); // 滚动条皮肤资源 var skins: any[] = []; skins.push("atlas/comp/vscroll.png", "atlas/comp/vscroll$bar.png", "atlas/comp/vscroll$down.png", "atlas/comp/vscroll$up.png"); Laya.loader.load(skins).then(() => { // 创建滚动条 var vs: Laya.VScrollBar = new Laya.VScrollBa...

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

278. 请问object层中添加的sprite怎么添加点击事件 [ 38%]

...My Name is Bear"); }); mallLayer.addChild(flower); mallLayer._showGridList.push(flower); 附件 : --> hxwlworld.zip 2018-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 Laya_Aaron 赞同来自: 158*****197 ht...

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

279. 路径显示会添加DrawCall,每增加一条路径都会添加,有什么办法降DrawCall [ 38%]

...len;i++){ p = new Image("test/footprint.png"); p.pos((i-1)*PATH_LEN,0); ar.push(p); path.addChild(p); } } private function OnShow():void { // TODO Auto Generated method stub if(pop==null){ pop = new TestDialogUI(); pop.btn_close.clickHandler = new Handler(this,function(){pop.parent.removeChild(pop);...

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

280. 射线形状检测shapeCastAll返回的检测结果只第一次有效 [ 38%]

...t; count; i++) { var hitResult = this._collisionsUtils.getHitResult(); out.push(hitResult); hitResult.succeeded = true; hitResult.collider = PhysicsComponent._physicObjectsMap[bt.btCollisionObject_getUserIndex(bt.tBtCollisionObjectArray_at(collisionObjects, i))]; hitResult.hitFraction = bt.tScalarAr...

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