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

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

1. animator.owner._scene报空 [ 100%]

animator.owner._scene报空 在laya.d3.js文件中,animator.update函数中,animator.owner._scene报空,导致(animator.owner._scene).timer报错,请问这是什么原因呢?项目有点大暂时提供不了demo。 2020-01-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

2. CameraMoveScript.as在哪儿下载群里的有错 [ 91%]

...ublic function CameraMoveScript() { } override public function _initialize(owner:Sprite3D):void { super._initialize(owner); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); Laya.stage.on(Event.MOUSE_OUT, this, mouseOut); var camera:BaseCamera = owner.sc...

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

3. 3D场景跳转到2D场景问题 [ 83%]

...3D场景玩家 上面的代码: onCollisionEnter(other){ if(other.other.owner.name==="end"){ // this.owner.parent.removeSelf(); //删除自身场景 console.log(this.owner.parent) console.log(this.owner.parent.parent); //创建胜利的UI界面 let victoryScene=new VictoryScene(); Laya.stage.addCh...

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

4. 我竟然被射线检测这个小功能给难了一天了 [ 82%]

...esult() physics:Laya.PhysicsSimulation; onAwake():void{ this.camera = this.owner.getChildByName("Main Camera") as Laya.Camera; let scene: Laya.Scene3D = this.owner.scene as Laya.Scene3D;   this.physics=scene.physicsSimulation;     console.log("相机位置",(this.owner.getChildByName("Main Camera...

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

5. laya2 物理引擎好多问题 [ 82%]

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

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

...大,没有打包         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. 2.6.1物理bug [ 79%]

...地面都设置了弹力   TestScript2  onAwake   this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collis...

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

8. 2.6物理问题 [ 77%]

...地面都设置了弹力   TestScript2  onAwake   this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collis...

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

9. Camera.viewportToRay中origin与direction相等问题 [ 74%]

...ce.mainCamera.viewportPointToRay(this._rayPt, this._ray); let scene = this.owner.scene as Laya.Scene3D; scene.physicsSimulation.rayCast(this._ray, this._raycastHit); console.log(this._raycastHit.succeeded); if(this._raycastHit.succeeded) console.log(this._raycastHit.collider.owner.name); } GameManag...

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

10. Laya3.0 图片拼合缩放会导致两张图片之间有一条横线[已解决] [ 73%]

...ZONE 微信 biubiubiu 赞同来自: 以下是测试代码         this.owner.scene.scale(1.25, 1.25) //使用缩放后 图片拼合会多一条线 2.0中没有此问题         Laya.loader.load("http://103.219.177.59:63344/%2 ... ot%3B, Laya.Loader.TEXTURE2D).then((texture: Laya.Texture2D) =...

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