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

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

1. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 100%]

...一个点 this.num2 = this.box._components[0].boundBox.containsPoint(other.owner.transform.position); //空间中包围盒是否相交另一个包围盒 if(this.num1 == 2) { //空间中包围盒是否包含另一个点 if(this.num2 == 1) { if(this.tsizex > this.osizex && this.tsizez > ...

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

2. [LayaAirIDE3]2d相机打包后问题 [ 93%]

...EIGHT;          // 摇杆事件监听         this.joystickScript.owner.on(Joystick.MOVE, this, (data: any) => {             this.playerScript.move(data.direction, data.force);         });          this.joystickScript.owner.on(Joystick.END, this, () => {           ...

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

3. 子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null[ 91%]

...) { Laya.timer.once(1500, this, function () { console.log("destroy"); this.owner.destroy(); }); } onUpdate() { this.owner.transform.translate(new Laya.Vector3(0, 0, -0.1)); } 2019-03-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

4. box2d引擎报错问题 [ 90%]

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

5. 物体随着鼠标滑动旋转脚本 [ 89%]

...什么意思有什么作用 ObjectRotate.prototype._initialize = function (owner) {     var _this = this;     ObjectRotate.__super.prototype._initialize.call(this,owner);       //在this(调取本函数的的对象)作用域内,侦听mousedown(鼠标按下)事件,如果侦听...

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

6. 初次加载场景正确,返回后只加载第一个场景 [ 89%]

...大,没有打包         console.log("目标所属的OWER"+this.owner.name + "");         console.log("目标所属的OWER:"+this.owner.name.slice(12,13) + "");         Laya.Scene.open("test/PuzzleScene"+this.owner.name.slice(12,13)+".scene",true,null,null,null); 附件...

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

7. 射线检测报错,outHitInfo.sprite3D=null; [ 88%]

...D; private camera : Laya.Camera; private scene: Laya.Scene;  public _load(owner : any):void{ this.scene = owner; this.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); }  public _start(state:Laya.RenderState):v...

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

8. Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent [ 87%]

...s = bt.btCollisionObject_getCollisionFlags(btColObj);         if (this.owner.isStatic) {             if ((flags & PhysicsComponent.COLLISIONFLAGS_KINEMATIC_OBJECT) > 0)                 flags = flags ^ PhysicsComponent.COLLISIONFLAGS_KINEMATIC_OBJECT;             flags ...

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

9. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 [ 86%]

....display.Sprite; import laya.events.Event; public class Btn { private var _owner:Sprite; private var _isScal:Boolean; public function Btn() { trace("btn的附加类已经开始执行"); } //设置owner函数,可以直接获取到Button组件的实例 public function set owner(v:Sprite):void { _own...

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

10. 2.3.0beta 各种bug [ 85%]

...方法       TrailFilter       resetGeometry(){ var render = this._owner._render; var element = render._renderElements[0]._geometry; element && element.resetGeometry() }      TrailGeometry      resetGeometry(){   var count=this._endIndex; for (var i=this._activeIndex;i < coun...

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