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

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

431. 通过getChildByName找到的dialog节点使用show方法后, 再次getChildByName查找, 结果为null [ 68%]

通过getChildByName找到的dialog节点使用show方法后, 再次getChildByName查找, 结果为null let dialog = new laya.ui.Dialog();  dialog.name = 'Dialog' parentNode.addChild(dialog);    let childNode = parentNode.getChildByName('Dialog'); childNode.show();   console.log(parentNode.get...

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

432. 求问sprite放大后,graphics绘制的图像位置偏移 [ 68%]

...sprite.scale(scaleRatio, scaleRatio); Laya.stage.addChild(sprite); console.log(sprite.width); console.log(sprite.height); 比如我在一个sprite的中心画一个圆,用scale放大后,圆偏离中心。 必须在原位置减去位置除以缩放比才能达到想要的效果。 附件 : --> 20...

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

433. 不带格式后缀的图片无法成功加载 [ 68%]

...ler.create(this, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y = 350 Laya.stage.addChild(nodee) }));上面这个图片无法正常显示,打...

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

434. layaAirIDE中如何使用wx等微信基础对象,ide版本1.7.19.1beta [ 68%]

...ayaAirIDE中如何使用wx等微信基础对象,ide版本1.7.19.1beta wx.login({ success: function () { wx.getUserInfo({ success: function (res) { console.log('success', res) }, fail: function (res) { console.log("reject",res) } }) } }); 这段代码里的wx对象,报错如下 "wx is not defined...

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

435. Laya.Sprite loadImage 参数问题 [ 68%]

...0,50); //添加红色颜色滤镜效果 img.filters = [redFilter]; console.log('b'); } /**创建灰色滤镜位图**/ private createGrayFilter():void{ //颜色滤镜矩阵,灰色 var colorMatrix:any = [ 0.3086, 0.6094, 0.0820, 0, 0, //R 0.3086, 0.6094, 0.0820, 0, 0, //G 0.3086, 0.6094, 0.0820, 0, 0,...

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

436. 初次加载场景正确,返回后只加载第一个场景 [ 67%]

...问题吗? .laya文件夹过大,没有打包         console.log("目标所属的OWER"+this.owner.name + "");         console.log("目标所属的OWER:"+this.owner.name.slice(12,13) + "");         Laya.Scene.open("test/PuzzleScene"+this.owner.name.slice(12,13)+".scene...

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

437. 对接上架字节跳动小游戏技术指南(TypeScript-小游戏适配文档-字节跳动小游戏) [ 67%]

...ion }); //监听录屏开始事件 this._recorder.onStart((res)=>{ console.log("录屏开始 res:" + JSON.stringify(res)); }); //监听录屏错误事件 this._recorder.onError((errMsg)=>{ console.log("录屏错误 errMsg:" + errMsg); }); } } /** * 停止录屏, * 开发者根据需求,在不想...

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

438. localRotationEulerY旋转位置错误 [ 67%]

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

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

439. [LayaAirIDE3]2d相机打包后问题 [ 67%]

...               // 监听全局事件         Laya.stage.on("DIALOG_SHOW", this, this.disable);         Laya.stage.on("DIALOG_HIDE", this, this.enable);     }      onDestroy() {         // 移除事件监听         Laya.stage.off("DIALOG_SHOW", this, this.disable);     ...

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

440. Laya.LocalStorage.getJSON空对象在微信小游戏中被处理为空字符串 [ 67%]

... var equipDataArray = Laya.LocalStorage.getJSON('equipDataArray'); console.log('equipDataArray ', equipDataArray, ' |'); if (equipDataArray === null) { equipDataArray = [ { icon: 'img/weapon/gun0.png', weaponIndex: 0, weaponGrade: 1 }, { icon: 'img/weapon/gun1.png', weaponIndex: 1, weaponGrade: 1 },...

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