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

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

51. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 82%]

...射线原点的代码。 我现在是仿照AS代码,改写成TS: 发现owner对象没有transform方法。AS和TS中两个对象的类型也不一样。 之后我发现在AS代码中,load方法 有个参数是:owner:Laya.Sprite3D ,所以我觉得的对象是这里赋值的,并不是own...

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

52. laya.d3.component.Animator [ 82%]

...gleton : Boolean[read-only] 获取是否为单实例组件。 Component3D owner : ComponentNode[read-only] 获取所属Sprite3D节点。 Component3D  paused : Boolean 获取当前是否暂停 Animator  playbackRate : Number 播放速率Animator  playbackTime : Number[write-only] 设置当前...

来源: laya_api 发布时间: 20170929

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

...r: Laya.PhysicsComponent): void { console.log("box2_onTriggerStay " + this.owner.name + " "+ other.owner.name); let b1:Laya.BoundBox = this.box.meshRenderer.boundingBox; let box2:Laya.MeshSprite3D = other.owner as Laya.MeshSprite3D; let b2:Laya.BoundBox = box2.meshRenderer.boundingBox; }获取boundi...

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

54. 鼠标脚本(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 81%]

...---Script3D中的鼠标事件。如果想要使用鼠标脚本,在脚本owner上还是需要有物理碰撞器。 **Tips**:鼠标脚本依赖射线检测,只不过不用开放者自己手动创建射线了。 **鼠标脚本内容:** > Method `onMouseClick():void` 鼠标点击时执行 `onMou...

来源: Laya2.0_文档 发布时间: 20210715

55. box2d动态创建绑定多个关节报错 Node:the component is singleton,can't add the second one. [ 81%]

...tes[0].y); let potOther = new Laya.Point(pointes[0].x, pointes[0].y); self.owner.globalToLocal(potSelf);  other.owner.globalToLocal(potOther);  var distanceJoint = new Laya.DistanceJoint();   distanceJoint.otherBody = other.rigidBody; distanceJoint.otherAnchor = [potOther.x, potOther.y] distanceJ...

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

56. box2d引擎报错问题 [ 81%]

...te (laya.core.js:21262)   相关逻辑代码如下: moveSuccess(){ this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } onTriggerEnter(other: any, self: any, contact: any): void { if (other.label === "cloud") { Laya.Tween.clearAll(this._sp) let effect: Laya.Animation = Laya.Pool.get...

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

57. laya.d3.core.Transform3D [ 80%]

... Transform3D  localScale : Vector3 获取局部缩放。 Transform3D  owner : Sprite3D[read-only] 获取所属精灵。 Transform3D  parent : Transform3D 获取父3D变换。 Transform3D  pivot : Vector3 变换中心点,注意:该中心点不受变换的影响。Transform3D  position : Vec...

来源: laya_api 发布时间: 20170929

58. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 80%]

...d static _uniqueIDCounter: number; protected _id: number; protected _cachedOwnerLayerMask: number; protected _cachedOwnerEnable: boolean; protected _enable: boolean; protected _owner: laya.d3.core.Sprite3D; /**是否已执行start函数。*/ started: boolean; /** * 获取唯一标识ID。 * @return ...

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

59. 字体切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 80%]

...虎兔龙蛇马羊猴鸡狗猪年快乐"; testFontClip.spaceY = 10; this.owner.addChild(clipnum); this.owner.addChild(fontClip); this.owner.addChild(testFontClip); this.owner.addChild(testClipNum); this.owner.addChild(clipnum1); } } 通常FontClip已经可以满足开发者的基本需求。如果...

来源: Laya3.0_文档 发布时间: 20240910

60. laya.components.CommonScript_API3.0 [ 79%]

...t CommonScript Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id isSingleton Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onR...

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