大约有 30 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0033 秒)
...er.parent as Laya.Scene3D; this._text = this._scene.parent.getChildByName("ceshi") as Laya.Text; this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ ...
来源: Laya_社区 发布时间: 20190531
...er.parent as Laya.Scene3D; this._text = this._scene.parent.getChildByName("ceshi") as Laya.Text; this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ ...
来源: Laya_社区 发布时间: 20190605
... this._phasorSpriter3D = new PhasorSpriter3D(); this._camera = this._owner.getChildByName("Camera") as Camera; } public _postRenderUpdate(state:RenderState):void { super._update(state); this._point.elements[0] = Laya.stage.mouseX; this._point.elements[1] = Laya.stage.mouseY; this._camera.viewportPoi...
来源: Laya_社区 发布时间: 20180201
...(scene); //添加方向光 var directionlight: Laya.DirectionLight = scene.getChildByName( "Directional Light" ) as Laya.DirectionLight; this.directionlight = directionlight; //加入子層人物腳色到舞台 var littleGirl: Laya.Sprite3D = scene.getChildByName( "Girl" ) as Laya.Sprite3D; scene.ad...
来源: Laya_社区 发布时间: 20200917
...值,其它组件的引用全是不对的 但是如果通过this.owner.getChildByName("testLb") 这种方式,就是正常的,这能优化下?????? 附件 : --> demo5.zip 2021-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20211026
...的api,只能一层一层的找,类似这样 this.owner.parent.parent.getChildByName("a").getChildByName("b"); 2020-03-16 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 dz5566 相关问题 发起问题须知,必看!!!不按...
来源: Laya_社区 发布时间: 20200311
...忙看看 为什么没有效果啊 let camera : Laya.Camera = this.owner.getChildByName("Main Camera") as Laya.Camera ;let postProcess:Laya.PostProcess = new Laya.PostProcess; let bloom:Laya.BloomEffect = new Laya.BloomEffect(); // bloom.color = Laya.Color.RED; bloom.intensity = 0.5; bloom.clamp = 0...
来源: Laya_社区 发布时间: 20190827
...中的角色移动碰撞区模型 var moveArea = this.scene.getChildAt(0).getChildByName("MoveArea"); //设置为不渲染 moveArea.meshRender.enable = false; //加载网格碰撞器组件 var sprite3d1MeshCollider=moveArea.addComponent(Laya.MeshCollider); //官方js例子里少了下面这行 sprit...
来源: Laya_社区 发布时间: 20180118
...s.scene = this.owner.parent; this.text = this.scene.parent.getChildByName("ceshi"); this.camera = this.scene.getChildByName("camera"); } onUpdate(){ let touchCount = this.scene.input.touchCount(); if (1 === touchCount){ ...
来源: Laya_社区 发布时间: 20190531
...rted) { this._started = true; this.enabled = true; } var ground=this.owner.getChildByName("ground"); //****新增代码*****, ground.addComponent(Laya.ChainCollider); //****新增代码*****, this._chains=ground.getComponent(Laya.ChainCollider...
来源: Laya_社区 发布时间: 20181130