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

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

291. 【LIST无法拖动】参照官方实例做的 [ 56%]

...      this.img = new Image();         this.img.width = 200;         this.img.height = 200;         this.height = 230;         this.text_guanqia =new Text();         this.text_guanqia.x = 100;         this.text_guanqia.y = 205;   ...

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

292. 2.3.0截屏问题 [ 56%]

...); let canvas: any = htmlCanvas.sourse; canvas.toTempFilePath({ x: 100, y: 200, width: 50, height: 50, destWidth: 100, destHeight: 100, fileType: "png", quality: 1.0, success: (res) => { console.log(res.tempFilePath); } }) }   报的是 gameThirdScriptError ImageData is not defined ReferenceErro...

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

293. 游戏长时间运行掉帧的问题 [ 56%]

...卡顿,但是 sprite数值160多,drawcall 数值 60多,curmem数值 200多,shader 数值40多,我就想知道 面板上的这些数值 很高吗?为什么会掉帧!万能的官方 别在给我发连接了,翻烂了! 2018-01-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

294. 2D物理-复合碰撞器 [ 56%]

... Physics_Physics_Tumbler { constructor() { this.count = 0; this.totalBox = 200; Laya.Config.isAntialias = true; Laya.Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable({ gravity: 0 }); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alig...

来源: Laya2.0_示例 发布时间: 20251209

295. panle 组件的高度 动态变化时 内部item 没有适配 [ 56%]

...Laya.Tween.to(this.PanleList , {height : (this.thismaxHeight - height) } , 200 ) 子物体没有 适配 放大的时候会跟最最大高度适配 2017-06-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica -...

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

296. Button 添加事件不执行? [ 56%]

...olor ='#FF8502'; rightBtn.labelStroke = 10; rightBtn.x = 100; rightBtn.y = 200; rightBtn.on(Event.CLICK, this, clickHandler); rightBtn.clickHandler = Handler.create(this, function () { console.log('click handler'); }); function clickHandler () { console.log('on click') } Stage.addChild(rightBtn);  ...

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

297. 关于富文本的显示宽度与自动换行 [ 56%]

...置html.style.wordwrap=false 阻止自动换行 2、有宽度限制,为200,你可以可以调节html宽度让其不换行   2017-07-21 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ethan 相关问题 2.0一不小心删了bin目录...

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

298. 加载解析ByteArray问题 [ 56%]

...ay = new ByteArray(); byts.writeByte(10); byts.writeInt(20); byts.writeInt(200); byts.writeInt(150); var file:File = File.desktopDirectory.resolvePath("byarr.byte"); var stream:FileStream = new FileStream(); stream.open(file, FileMode.WRITE); stream.writeBytes(byts); stream.close(); 保存为byarr.b...

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

299. 在LayaBox2中使用JavaScript创建编辑模式设计好的对话框 [ 56%]

...己看看吧。 下面是调用的方法 var d = new FirstDialog(); d.x = 200; d.y = 100; d.popup(); // d.show();   附件 : --> FirstDialog.rar 2019-01-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 bpmf_d ...

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

300. getimagedata直接调用无法获取有效像素问题 [ 56%]

... 0);             Laya.stage.addChild(ape);             ape.pos(200, 0);             x = t.getPixels(0,0,400,400)             console.log(x)             for (let i of x) {                 if (i > 0) {                     console.log(i)          ...

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