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

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

851. playByFrame动画监听问题,真不会了。就一个小问题。监听不到动画结束。。。 [ 75%]

...?应该怎么用求教啊。。。。。 Laya.stage.on(Laya.Event.CLICK, this, function () {                 for (var i = 0; i < _outHitAllInfo.length; i++) {                     var name=_outHitAllInfo<em>.sprite3D.name;                     if(name=='anifish')...

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

852. 使用2D地图3D人物混合进行游戏开发(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 75%]

...ypescript //监听一次点击事件 Laya.stage.once(Laya.Event.MOUSE_DOWN,this,function () { scene.addChild(layaMonkey); this._layaMonkey = layaMonkey; //设置缩放 var tmpLocalScale = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.transform.localScale = tmpLoc...

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

853. 使用2D地图3D人物混合进行游戏开发(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 75%]

...ypescript //监听一次点击事件 Laya.stage.once(Laya.Event.MOUSE_DOWN,this,function () { scene.addChild(layaMonkey); this._layaMonkey = layaMonkey; //设置缩放 var tmpLocalScale = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.transform.localScale = tmpLoc...

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

854. 如何获取unity导出的摄像机 [ 75%]

...慢研究的 Laya.loader.create([{url:"land/main.lh"}],Laya.Handler.create(this,this.onCreateComplete));   再单独写个这个 onCreateComplete(){ var land = Laya.loader.getRes("land/main.lh"); this.scene.addChild(land); var camera = land.getChildByName("Camera"); camera.addComponent(CMS);//控...

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

855. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 75%]

...方法绘制图片并添加到舞台 Laya.loader.load(Res,Handler.create(this,graphicsImg)); } private function graphicsImg():void { img = new Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台 Laya.stage.addChild(img); } } } ...

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

856. EventDispatcher.hasListener问题 [ 75%]

...Listener问题 var e:EventDispatcher = new EventDispatcher(); e.on("test", this, this.test1); e.on("test", this, this.test2); e.off("test", this, this.test1); e.off("test", this, this.test2); console.log(e.hasListener("test")); ---------------------------------------- 输出:true   2018-04-23 添...

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

857. 画了一个封闭的曲线,获取鼠标点击处的像素,为何坐标对不上导致拿不到正确位置的Texture? [ 75%]

...5); Laya.stage.addChild(_view); _view.size(80, 100); _view.on(Event.CLICK, this, __clickHandler); } private function __clickHandler():void { trace(_view.stage.mouseX + "---" + _view.stage.mouseY); /*获取所画曲线鼠标点击处的像素,为何坐标对不上?导致无法拿到正确位置...

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

858. 2.6.1物理bug [ 75%]

...力的数值,球和地面都设置了弹力   TestScript2  onAwake   this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(Phy...

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

859. 物理系统之ConfigurableConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 75%]

...约束,为约束绑定两个刚体 ```typescript var boxA:MeshSprite3D = this.addRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigidBodyBox(new Vec...

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

860. laya升级到2.0.0beat4版本,加载场景出现的bug [ 75%]

...载:Laya.loader.create("Laya/Conventional/Map_SCC.ls",Laya.Handler.create(this,this.LoadCompleteHandler)); 加载完成后: var scene3D:Laya.Scene3D = Laya.loader.getRes(this.mSceneName) as Laya.Scene3D; Laya.stage.addChild(scene3D); 异常: TypeError: node._setParent is not a function preload.js:55...

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