大约有 411 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
Laya_社区(171) Laya3.0_api(85) Laya3.0_文档(67) Laya2.0_api(43) laya_api(23) Laya2.0_文档(21) Laya2.0_示例(1)
... onTriggerEnter(e:Laya.RigidBody):void{ var cil:Laya.CircleCollider=this.owner.getComponent(Laya.CircleCollider); var rig:Laya.RigidBody=this.owner.getComponent(Laya.RigidBody); cil.enabled=false; rig.enabled=false; var self:Laya.Sprite= this.owner as Laya.Sprite; var ni:Laya.Animation=new Laya.An...
来源: Laya_社区 发布时间: 20190721
...放完了没有侦听到COMPLETE事件。 肖刚 • 2020-06-18 00:54 this.owner.ani.on(Laya.Event.COMPLETE,this.onSplashComplete); this.owner.ani.play(0,false); this.owner.stage.on(Laya.Event.COMPLETE,this.onSplashComplete); 这两个侦听器都没有侦听到COMPLETE事件的发生。 FullyI • ...
来源: Laya_社区 发布时间: 20181011
... Boolean[override] [read-only] 获取是否为单实例组件。 Collider owner : ComponentNode[read-only] 获取所属Sprite3D节点。 Component3D size : Vector3 获取盒子碰撞器长宽高的一半。 BoxCollider started : Boolean是否已执行start函数。Component3DPublic Methods Hide...
来源: laya_api 发布时间: 20170929
... Boolean[override] [read-only] 获取是否为单实例组件。 Collider owner : ComponentNode[read-only] 获取所属Sprite3D节点。 Component3D radius : Number 获取半径。 SphereCollider started : Boolean是否已执行start函数。Component3DPublic Methods Hide Inherited Public Metho...
来源: laya_api 发布时间: 20170929
...射线原点的代码。 我现在是仿照AS代码,改写成TS: 发现owner对象没有transform方法。AS和TS中两个对象的类型也不一样。 之后我发现在AS代码中,load方法 有个参数是:owner:Laya.Sprite3D ,所以我觉得的对象是这里赋值的,并不是own...
来源: Laya_社区 发布时间: 20171114
...gleton : Boolean[read-only] 获取是否为单实例组件。 Component3D owner : ComponentNode[read-only] 获取所属Sprite3D节点。 Component3D paused : Boolean 获取当前是否暂停 Animator playbackRate : Number 播放速率Animator playbackTime : Number[write-only] 设置当前...
来源: laya_api 发布时间: 20170929
...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
...---Script3D中的鼠标事件。如果想要使用鼠标脚本,在脚本owner上还是需要有物理碰撞器。 **Tips**:鼠标脚本依赖射线检测,只不过不用开放者自己手动创建射线了。 **鼠标脚本内容:** > Method `onMouseClick():void` 鼠标点击时执行 `onMou...
来源: Laya2.0_文档 发布时间: 20210715
...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
...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