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

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

421. JCHtml5Context::drawImage get image error,imgid:125 [ 54%]

...l LayaAirIDE2.2 - Laya3D init error ,must support webGL Error: asBitmap no size! 问题状态 最新活动: 2019-09-26 11:27 浏览: 868 关注: 1 人

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

422. 舞台上有个label,我能通过截图保存成图片么 [ 53%]

...cs.drawRect(0,0,200,200,"#EEFF00"); var label:Label=new Label(); label.fontSize=60; label.text="666"; label.bold=true; label.color="#000000"; sp.addChild(label); sp.size(200,200); Laya.stage.addChild(sp); Laya.timer.frameLoop(60,this,function():void{ var htmlC:HTMLCanvas=sp.drawToCanvas(200,200,0,0)...

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

423. 一个关于getPixels的问题 [ 53%]

...t.text = "000000"; Laya.stage.addChild(txt);  var spr = new Sprite(); spr.size(50, 50); Laya.stage.addChild(spr);  spr.texture = "images/circle.png";  txt.text = spr.texture.getPixels(25,25,1,1);希望通过使用getPixels方法使txt的文本内容变成spr.texture的(25,25)处的那一像素。...

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

424. 2.0TS3D物体碰撞,如何获取双方包围盒 [ 53%]

...何改变自身物体大小? Laya1.0 JS 改变物体大小是 this,box.size.x = 200;(模型是3D模型,带入到U3D是需要放大100倍的) 那2.0 的TS改变物体大小是上面?它的碰撞体会不会跟着物体大小改变。 附件 : --> 2018-11-16 添加评论 免费帖 --> 分享 微...

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

425. 请问Laya如果获取Laya.Event.CLICK时间的点击坐标? [ 53%]

...aya.stage.width, Laya.stage.height-100 ); clickRect.pos( 0, 0 ); clickRect.size( Laya.stage.width, Laya.stage.height-100 ); Laya.stage.addChild( clickRect ); clickRect.on( Laya.Event.CLICK, this, changeVxVy ); } function changeVxVy( e ){ console.log( e.nativeEvent.offsetX ); console.log( e.nativeEv...

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

426. 在Scene2D中添加Image,修改Cache为bigmap,窗口变黑 [ 53%]

...么修改都是黑色的。 报错信息[Scene] Uncaught TypeError: canvas.size is not a function 附件 : --> TextProject.rar 2023-02-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 layabox小高 赞同来自: ...

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

427. 设置pivot后,精灵位置显示位置不正确 [ 53%]

...fff" this.sp = new Laya.Sprite(); let width = 660 let height = 420 this.sp.size(width, height) this.sp.pivot(Math.round(width / 2), Math.round(height / 2)) this.sp.graphics.drawCircle(0, 0, 5, "#000000") this.sp.graphics.drawRect(-this.sp.pivotX, -this.sp.pivotY, width, height, undefined, "#00ff00",...

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

428. laya中js 如何实现Sprite类继承 [ 53%]

...: this.Role = new Role(); this.RoleMap = new Laya.Sprite(); this.RoleMap.size(Laya.stage.width, Laya.stage.height/2); Laya.stage.addChild(this.RoleMap); this.RoleMap.addChild(this.Role); this.Role.pivot(16,24);// 图片32x48 this.Role.pos(100, 200);   Role.js基础代码: var Role = ( function ...

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

429. 在画布上播放video问题的思路 [ 53%]

... htmlCanvas.source.width = 100; htmlCanvas.source.height = 100; htmlCanvas.size(100, 100); // 在单独的画布上绘制矩形。 htmlCanvas.getContext("2d").fillStyle = "#FFFF00"; htmlCanvas.getContext("2d").fillRect(20, 20, 60, 60); // 把单独画布绘制到舞台。 var texture:Texture = new T...

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

430. Laya2.7.0 beta cannon bug [ 53%]

...nonRigidBody3D 的angularVelocity 报错 报错原因:Maximum call stack size exceeded   附件 : --> 2020-06-19 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 157*****593 赞同来自: 麻烦提供一个可复...

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