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

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

371. 怎样获取鼠标/触摸当前坐标 [ 86%]

... 赞同来自: qwer535305054 function getMousePos(ev) {    var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;    var scrollY = document.documentElement.scrollTop || document.body.scrollTop;    var x = ev.pageX || ev.clientX + scrollX;    var...

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

372. 3D中摄像机绕物体旋转该如何实现? [ 86%]

...ponent(ModelViewer); modelViewer.AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summary> /// Around center. ///...

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

373. laya 3D碰撞器与 Unity 不一致问题 [ 86%]

...致问题 Laya 碰撞器偏移Bug一 首先为下图上面的Cube添加 Box碰撞器和钢体 当cube scale为 1 :1:1时将图中上方的Cube碰撞器偏移 laya预览效果与Unity运行效果一致   将下图上方的cube Transform属性的Scale 设置为5:1:1的比例将X轴 Scale 拉伸5...

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

374. 为什么Laya.Panel的子节点在(0,0)位置会不显示呢? [ 86%]

...到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: 看下你的代码或者给个例子,子节点再00处,应该是没有问题的! 2017-02-17 0 2 分享 微博 QZONE 微信 Devilsparta 赞同来自: var panel = new Laya.Panel(); panel.width = 80...

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

375. TimeLine调用destroy报错&执行完成后回到起点 [ 85%]

...】:如果注释掉“turnUp”, 在动画执行完成后, 图片的x,y坐标变成了起始坐标   报错信息: .max.js:12479 Uncaught TypeError: Cannot read property 'length' of null at TimeLine.__proto._update (HMain.max.js:12479) at TimerHandler.__proto.run (HMain.max.js:9196) at Ti...

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

376. laya.d3.math.native.ConchQuaternion_API3.0 [ 85%]

Search Preparing search index... The search index is not available ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/Native/ConchQuaternion" ConchQuaternion Class ConchQuaternion Quaternion 类用于创建四元数。 Hierarchy ConchQuaternion I...

来源: Laya3.0_api 发布时间: 20231102

377. 分享一个虚拟摇杆,比较粗糙,没做优化 [ 85%]

...杆,比较粗糙,没做优化 function ModeKey() { //大圆 this.moveMax = null; //小圆点 this.moveKey = null; //当前的舞台 this.layer = null; //是否按下 this.isDown = false; //是否弹起 this.isUp = false; //是否移动 this.isMove = false; } tip:其实是否按下,是否弹起...

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

378. laya.d3.resource.RenderTexture [ 85%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames RenderTextureProperties | Methods | Constants Packagelaya.d3.resourceClasspublic class RenderTextureInheritanceRenderTexture BaseTexture laya.resource.Bitmap //RenderTexture 类用于创建渲染目标。 Public Propert...

来源: Laya2.0_api 发布时间: 20190513

379. 官方案例里摄像机绕物体旋转脚本的问题 [ 85%]

...ponent(ModelViewer); modelViewer.AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summary> /// Around center. ///...

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

380. UI-RadioGroup [ 85%]

Layabox是免费开源的HTML5引擎解决方案,产品家族中包括LayaAir引擎、LayaFlash引擎、LayaOpen开放平台、LayaMarket SDK、LayaStore嵌入式游戏商店、LayaPlayer运行器。核心引擎LayaAir性能全球领先,支持2D、3D、VR开发,支持AS3、JavaScript、TypeScr...

来源: Laya_示例 发布时间: 20260303