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

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

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

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

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

422. 请问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

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

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

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

424. 设置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

425. 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

426. 在画布上播放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

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

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

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

428. [LayaNative3]VideoNode功能在鸿蒙上不支持? [ 53%]

...法没问题,ide里都能播放 let video = new Laya.VideoNode(); video.size(900,600); video.mode = "player"; video.options.controls = true; video.options.objectFit = "contain"; video.source = src; //设置视频源文件 video.autoPlay=true; this.view.addChild(video); 2025-10-11 添加评论 免...

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

429. undefined preload.js:55 Error: "unknown animationClip version. : LAYAANIMATION:04 [ 53%]

...f bounds Laya2.1.0 JS调用Java PlatformClass undefined Error: asBitmap no size! 运行报错 Uncaught Can not find scene:GameView.scene undefined 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of undefined错误 问题状态 最新...

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

430. 电脑的谷歌浏览器移动端HTMLDivElement图文混排会报错 [ 53%]

...th="47" height="20" /></span> <span style='color:#dbd4bb;font-size:undefined'><font color='#e9a118'>简单雅洁:</font><font>***</font></span>" 电脑的谷歌浏览器移动端 附件 : --> 2020-07-15 1 条评论 免费帖 --> 分享 微博 QZONE 微...

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