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

大约有 784 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0056 秒)

51. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 91%]

..., 200); a.mouseEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void {     console.log("touch a"); } 因为需要将mouseThrough=true才可以,蛋疼的api描叙你能相信是这个熟悉么? “mouseThrough : Boolean = false,指定当mouseE...

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

52. laya.physics.EdgeCollider_API3.0 [ 90%]

...rarchy ColliderBase EdgeCollider Index Constructors constructor Properties _extra _singleton fixture label owner rigidBody runInEditor scriptPath Accessors awaked density destroyed enabled friction hideFlags id isSensor points restitution x y Methods _initialize _setOwner destroy hasHideFlag onAdded...

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

53. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 90%]

...el = target.angel.level; // 构造 function IsLand() { // 初始化 IsLand.__super.call(this); // 名字 this.name = "gemini"; this.init(); } // 注册类 IsLand Laya.class(IsLand,"IsLand",laya.display.Sprite); // 原型 var _proto = IsLand.prototype; // 初始化 _proto.init = function(){ // 球体...

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

54. laya.physics.PolygonCollider_API3.0 [ 90%]

...凹多边形,先手动拆分为多个凸多边形 节点个数最多是b2_maxPolygonVertices,这数值默认是8,所以点的数量不建议超过8个,也不能小于3个 Hierarchy ColliderBase PolygonCollider Index Constructors constructor Properties _extra _singleton fixture label owner ri...

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

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

...llider所在Transform的Scale导致的,可以修改laya.d3.js文件里的_innerDerivePhysicsTransformation方法,加粗部分为补丁: if (shapeOffset.x !== 0 || shapeOffset.y !== 0 || shapeOffset.z !== 0) {                 var physicPosition = PhysicsComponent._tempVector30;      ...

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

56. laya.physics.ChainCollider_API3.0 [ 90%]

...archy ColliderBase ChainCollider Index Constructors constructor Properties _extra _singleton fixture label owner rigidBody runInEditor scriptPath Accessors awaked density destroyed enabled friction hideFlags id isSensor loop points restitution x y Methods _initialize _setOwner destroy hasHideFlag on...

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

57. laya.resource.RenderTexture2D [ 90%]

...atic] RenderTexture2D format : int[read-only] 纹理格式 BaseTexture  _mgrKey : int = 0RenderTexture2D mipmap : Boolean[read-only] 是否使用mipLevel BaseTexture  offsetX : Number[read-only] 获取offsetX。 RenderTexture2D  offsetY : Number[read-only] 获取offsetY RenderTexture2D  so...

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

58. pivot 设置后 影响 元素大小??????????????? [ 90%]

...page[1].rotation=ps[1]+180;                     page[1].pos(_core.p1.x,_core.p1.y);                              }else if(idx==4){                             page[1].pivot(0,200);                     page[1].rotation=0;//ps[0]; ...

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

59. 真机测试时 有3d模型的界面尺寸就会错乱 [ 90%]

...测试了一下   一加上3d模型就开始有问题 问题代码:  _modePnl是场景里的节点   一执行addChild()这句话  界面布局就会乱   请问是什么问题呢 let { x, y } = this._modelPnl.localToGlobal(new Laya.Point(0, 0))         let { x: x2, y: y2 } = this._mod...

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

60. 3d模型旋转问题 [ 90%]

...到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Laya_Aaron 赞同来自: 用sphere.tranform.rotaion 来改世界旋转。。 2018-05-23 0 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: sphere.tranform.rotaion的值如何确定? 我是先获取一下 _qua=sphere.transf...

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