大约有 336 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0037 秒)
Laya_社区(177) Laya2.0_文档(60) Laya3.0_api(24) Laya_示例(21) Laya2.0_api(20) laya_api(19) Laya3.0_文档(15)
...置这个节点的旋转,如果我使用Laya.Quaternion.cloneTo(camera.transform.localRotation),会失败,如果使用camera.transform.localPosition = Laya.Quaternion.clone(),才会成功,之前我记得你们不是说过尽量避免创建对象吗?直接用cloneTo,摄像机的旋转四...
来源: Laya_社区 发布时间: 20170628
... let camera = new Laya.Camera(0, 0.1, 100); scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); let directionLight = new Laya.DirectionLight(); scene.addChild(directionLight); let mat = directionLight.tra...
来源: Laya_社区 发布时间: 20200915
...oad("fish/denglongyu/layaScene.lh"); scene.addChild(layaMonkey) layaMonkey.transform.localScale = new Laya.Vector3(0.04,0.04,0.04); layaMonkey.transform.position = new Laya.Vector3(0, 0.5,0); // layaMonkey.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)) //漫反射贴图 var tietu=layaMonkey.getC...
来源: Laya_社区 发布时间: 20171212
...存在一个目标OBJ, 首先获得目标的坐标this.objPoint3D= OBJ.transform.position2. 从摄像机(透视)构造一条射线(参考官方3D鼠标点击案例),来得到一个鼠标点击坐标this.originRay = new Laya.Ray(this.sceneCamera.transform.position, new Laya.Vector3(0, 0, ...
来源: Laya_社区 发布时间: 20200617
camera坐标问题的疑问 camera.transform.position=new Vector3(0,3,10);//图片中的A点 camera.transform.rotate(new Vector3(-17,0,0),true,false);//图上的B点 但是效果竟然把三D模型放在舞台的正中间,这个坐标实在是不明白怎么来的, https://ldc.layabox.com/doc/?...
来源: Laya_社区 发布时间: 20180706
...ene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); //-30改为-90 camera.transform.translate(new Laya.Vector3(0, 0.5, 0)); //(0,0.5,500)改为(0, 0.5, 0) camera.orthographicProjection = true; var directionLight ...
来源: Laya_社区 发布时间: 20170807
...D(Laya.PrimitiveMesh.createSphere(1)); this.scene1.addChild(ball); ball.transform.position = new Laya.Vector3((Math.random() - 0.5) * 2, 10, 17); //添加刚体 ball.addComponent(Laya.PhysicsCollider); let ballrigid: Laya.Rigidbody3D = ball.addComponent(Laya.Rigidbody3D); ballrigid.colliderSha...
来源: Laya_社区 发布时间: 20190506
...ert (appdata v) { v2f o; o.vertex = UnityObjectToClipPos(v.vertex); o.uv = TRANSFORM_TEX(v.uv, _MainTex); o.uv2 = TRANSFORM_TEX(v.uv2, _MainTex); UNITY_TRANSFER_FOG(o,o.vertex); return o; } fixed4 frag (v2f i) : SV_Target { // sample the texture fixed4 col1 = tex2D(_MainTex, i.uv); fixed4 col2 = ...
来源: Laya_社区 发布时间: 20190422
... this.fish = Laya.Sprite3D.load("Unity/" + fishName + "/yu.lh"); this.fish.transform.position = new Laya.Vector3(20, -10, 0); 2018-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Xq 赞同来自: 用tran...
来源: Laya_社区 发布时间: 20181026
... if (this._cacheRootBone){ this._cacheRootBone.transform.off(/*laya.events.Event.TRANSFORM_CHANGED*/"transformchanged",this,this._boundChange); 这里的this._cacheRootBone非空,但是上面transform是空的 这个精灵是 SkinnedMeshRenderer绑定的RootBone的...
来源: Laya_社区 发布时间: 20191015