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

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

31. setSubPixels画布擦除不掉 [ 86%]

...tSubPixels画布擦除不掉 this.btn.label = Math.random().toString(); // console.log(Math.random()); let tex:Laya.Texture = Laya.Loader.getRes(this.bUrl); let x:number = this._testStatus == true ? 0:50;//Math.random()>0.5 ? 50 : 0; this._testStatus = !this._testStatus; // let canvasInfo = this....

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

32. Error: 代码包大小为 5533 kb,上限为 4096 kb,请删除文件后重试? [ 86%]

...一个测试代码,压根就没有功能。 class Main { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { console.log("re...

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

33. 微信小游戏利用开放域好友关系链做排行榜 [ 86%]

...onLoaded));     }      private onLoaded(): void {         console.log("onLoaded ......");         GameBootstrap.wxPostMessage({             cmd:1,             text: 'hello',             year: (new Date()).getFullYear()         },nu...

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

34. [LayaAir3]Pool对象池获取继承对象时会返回基类对象 [ 86%]

... Laya.Script { onStart() { let item1 = Laya.Pool.createByClass(TestClass); console.log('item1:', item1.type); Laya.Pool.recoverByClass(item1); let item2 = Laya.Pool.createByClass(TestClass2); console.log('item2:', item2.type); console.log(item1 == item2); } } export class TestClass { type = 0; } exp...

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

35. 使用getChildByName()无法得到子节点对象 [ 86%]

...    cell._childs[1].text=data.listNumber.text;             console.log(index)             //根据子节点的名字listNumber,获取子节点对象。             var listNumber1 = cell.getChildByName("text");             // var text = cell.getC...

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

36. Dialog 关闭效果无效 [ 85%]

...ll, this.onCloseEffect, null, true); _proto_.onCloseEffect = function () { console.log("in on close effect") this.close(); } return CommonDlg; })(Laya.Dialog);console.log并未输出任何东西 2017-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

37. 摄像机的viewportPointToRay报错 [ 85%]

...计产生射线方法,通过2D坐标获取与屏幕垂直的一条射线 console.log( PanelMgr.mainCamera); PanelMgr.mainCamera.viewportPointToRay(this.pointRay, this.ray); (this.owner as Laya.Scene3D).physicsSimulation.rayCast(this.ray,this.hitresult); console.log(Laya.MouseManager.instance.mouse...

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

38. 龙骨动画残影 [ 84%]

...片段如下:  private _onAnimationCreated(ani)     {         console.log("ani created:" + ani);         this._hero = ani;         this.addChild(this._hero);         this._hero.pos(300, 400);         this._hero.scale(0.3, 0.3);         this._hero.on(La...

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

39. list只能显示一个图片 [ 84%]

...) { var item = {pic:{skin:'cards/'+i+'tong.jpg'}}; this.data.push(item); } console.log(this.data); this.list1.dataSource = this.data; this.list1.x = 50; this.list1.y = 500; this.list1.getChildAt(0).height = 100; this.list1.vScrollBarSkin = ""; this.list1.hScrollBarSkin = "comp/hscroll.png"; this.lis...

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

40. laya air 调试的输出有没有办法存成一个文件 [ 84%]

...来自: layaair ide mac版本的ide  不支持copy 还有能不能支持console.trace,在chrome是支持的,在mac版本 laya air 不支持   2016-07-29 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 xiqingdubu 相关问题 两个...

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