大约有 532 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0045 秒)
Laya_社区(199) Laya3.0_api(96) Laya2.0_api(88) laya_api(81) Laya2.0_文档(51) Laya3.0_文档(11) Laya_示例(6)
...Laya.stage.addChild(Laya.Scene.load(name)) as Laya.Sprite3D; //this.sceneP.transform.setTranslate(500,500); this.sceneP.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); this.sceneP.transform.localScale = new Vector3(3, 3, 3); this.sceneP.transform.localPosition = new...
来源: Laya_社区 发布时间: 20180327
...e()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); // camera.transform.translate(new Laya.Vector3(0, 0.8, 1.0)); // camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; camera.addComponent(CameraMoveScript); //球体 var sphere = new Laya.SphereM...
来源: Laya_社区 发布时间: 20161222
...addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 3, 30)); //方向光 const directionLight =this.newScene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = ne...
来源: Laya_社区 发布时间: 20210103
... if (this._cacheRootBone){ this._cacheRootBone.transform.off(/*laya.events.Event.TRANSFORM_CHANGED*/"transformchanged",this,this._boundChange); 这里的this._cacheRootBone非空,但是上面transform是空的 这个精灵是 SkinnedMeshRenderer绑定的RootBone的...
来源: Laya_社区 发布时间: 20191015
...amera = this.scene.addChild(new Laya.Camera()) as Laya.Camera; this.camera.transform.position = new Laya.Vector3(0, 0, 5); this.camera.transform.rotate(new Laya.Vector3(0, 0, 0), true, false); Laya.stage.on(Event.MOUSE_WHEEL,this,this.onMouseWheel); } private onMouseWheel(e:Event):void { e. //没有...
来源: Laya_社区 发布时间: 20170321
...。 Sprite3D timer : Timer时间控制器,默认为Laya.timer。Node transform : Transform3D[read-only] 获取精灵变换。 Sprite3D url : String 获取资源的URL地址。 Sprite3DPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By Sprite3D(na...
来源: laya_api 发布时间: 20170929
...e("头"); let angle:number = Math.atan2(Laya.stage.mouseY - (this.y - bone.transform.y), Laya.stage.mouseX - (this.x - bone.transform.x))*180/Math.PI; angle = Math.floor(angle); bone.rotation =angle; 2018-06-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...
来源: Laya_社区 发布时间: 20180607
...移 laya预览效果与Unity运行效果一致 将下图上方的cube Transform属性的Scale 设置为5:1:1的比例将X轴 Scale 拉伸5倍后 再讲BoxCollider的Center属性 x 设置为偏移 -0.3 得到如下效果 接下来我们来看看unity 的运行效果: unity 运行效果图...
来源: Laya_社区 发布时间: 20191019
...is._position.x = Math.sin(this.scaleDelta += 0.01); this.layaMonkey3D.transform.position = this._position; this.camera.viewport.project(this.layaMonkey3D.transform.position, this.camera.projectionViewMatrix, this._outPos); this.layaMonkey2D.pos(this._outPos.x / Laya.stage.clientScaleX...
来源: Laya_社区 发布时间: 20180425
....onTriggerStay = function (other) { this.tsizex = this.box._components[0]._transformOrientedBoundBox.extents.x; this.tsizez = this.box._components[0]._transformOrientedBoundBox.extents.z; this.osizex = other._transformOrientedBoundBox.extents.x; this.osizez = other._transformOrientedBoundBox.extents...
来源: Laya_社区 发布时间: 20181017