大约有 11 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0028 秒)
...,其实是方体 var x = scene.addChild(new MeshSprite3D(new BoxMesh(2,0.03,0.03))) as MeshSprite3D; var material = new StandardMaterial(); material.albedo = new Vector4(1, 0, 0, 1); x.meshRender.material = material; x.transform.position = new Vector3(1, 0, 0); //模拟y轴,其实是方体 var y...
来源: Laya_社区 发布时间: 20170314
...Y_LOADED, this, function(){ effect.transform.localScale = new Laya.Vector3(0.03, 0.03, 0.03); }); 代码应该这样写,然后新建一个项目直接测试一下粒子,粒子缩放是跟模型走的。 2018-07-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...
来源: Laya_社区 发布时间: 20180705
...不同是添加了vr相机 var vrCamera = scene.addChild(new Laya.VRCamera(0.03, 0, 0, 0.1, 100)); vrCamera.transform.translate(new Laya.Vector3(0, 2, 0)); vrCamera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; vrCamera.addComponent(VRCameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCub...
来源: Laya_示例 发布时间: 20241118
...不同是添加了vr相机 var vrCamera = scene.addChild(new Laya.VRCamera(0.03, 0, 0, 0.1, 100)); vrCamera.transform.translate(new Laya.Vector3(0, 0.1, 10)); vrCamera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; vrCamera.addComponent(VRCameraMoveScript); var directionLight = scene.addChild(new Laya.D...
来源: Laya_示例 发布时间: 20241118
...方体 var x:MeshSprite3D = scene.addChild(new MeshSprite3D(new BoxMesh(2,0.03,0.03))) as MeshSprite3D; var material:StandardMaterial = new StandardMaterial(); material.albedo = new Vector4(1, 0, 0, 1); x.meshRender.material = material; x.transform.position = new Vector3(1, 0, 0); //模拟y轴,其...
来源: Laya_社区 发布时间: 20161223
...置坐标跟拍摄角度? var camera = scene.addChild(new Laya.VRCamera( 0.03, 0, 0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(93, 64, -33)); camera.transform.rotate(new Laya.Vector3(0.05, 155, 0), true, false); camera.clearColor = null; camera.addComponent(VRCameraMoveScript); 我...
来源: Laya_社区 发布时间: 20170707
...每启动一次,所占用的手机空间都会大一点,大概0.01至0.03M之间。 比如第一次启动,在手机设置里查看游戏大小是20M。下一次,就会变成20.01M,再下次就变成20.02M或者20.03M,越来越大。 用不用layadcc,都会如此。 慢慢就会莫...
来源: Laya_社区 发布时间: 20170915
... = 0; i < circleCount; i++) { radius.z = 1.0 + i * 0.15; radius.y = i * 0.03; var oneCircleCount = 100 + i * 15; for (var j = 0; j < oneCircleCount; j++) { var boxSprite = new Laya.MeshSprite3D(boxMesh); boxSprite.meshRenderer.sharedMaterial = boxMat; var localPos = boxSprite.transform.localPo...
来源: Laya_社区 发布时间: 20191112
...let index = 0; index < 2; index++) { var a = 0.05; var b = 0.2; var c = 0.03; var pos = new Laya.Vector3(0,0.08,0.05);// new Laya.Vector3(0,0,0.05); if(index == 0){ a = 0.0001; b = 0.4 c = 0.2; pos = new Laya.Vector3(0,0,0); } // 创建Box对象 var cardOne = new Laya.MeshSprite3D(Laya.PrimitiveM...
来源: Laya_社区 发布时间: 20191223
...keyScript extends Script3D { private var rotation:Vector3 = new Vector3(0, 0.03, 0); override public function onAwake():void { trace("onAwake"); } override public function onStart():void { trace("onStart"); } override public function onUpdate():void { (owner as Sprite3D).transform.rotate(rotation, f...
来源: Laya2.0_文档 发布时间: 20210714