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

大约有 164 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0035 秒)

121. 官方DynamicBatchTest照做为什么动态合不了批? [ 64%]

...e = Laya.stage.addChild(new Laya.Scene3D()); scene.ambientColor = new Laya.Vector3(1, 1, 1);   var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 6.2, 10.5)); camera.transform.rotate(new Laya.Vector3(-40, 0, 0), true, false); camera.addCompone...

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

122. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 63%]

...ddChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vec...

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

123. 以前用lm文件加载模型。现在用lh文件加载模型无法贴图 [ 63%]

...h.meshRender.material = fishmaterial; fish.transform.localScale = new Laya.Vector3(0.04,0.04,0.04); fish.transform.position = new Laya.Vector3(0,0.5,0); // fish.transform.position = new Laya.Vector3(0.4,0.5,-0.35); fish.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); var anifish = fish.addCompon...

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

124. transform的旋转和移动是异步方法吗? [ 63%]

...添加到场景中的代码 // 先移动锚点 cube.transform.pivot = new Vector3(                 cube.transform.pivot.x + 0,                 cube.transform.pivot.y - height/2,                 cube.transform.pivot.z - width/2); // 旋转             cube...

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

125. 3D场景-场景加载 [ 63%]

...ddChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 0)); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2/skyCu...

来源: Laya_示例 发布时间: 20241117

126. 3D模型无法用Tween类吗 [ 63%]

...3D; scene.addChild(layaMonkey); layaMonkey.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); layaMonkey.transform.localPosition = new Laya.Vector3(0,1,0); layaMonkey.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); //移动模型 Laya.Tween.to(layaMonkey,{x:0,y:-1,z:-3},5000,Laya.Ease.l...

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

127. 3D模式下使用Tween使模型移动如何写法 [ 62%]

...h.meshRender.material = fishmaterial; fish.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); fish.transform.localPosition = new Laya.Vector3(0,1,0); fish.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); //移动鱼 Laya.Tween.to(fish,{x:-1},3000,Laya.Ease.linearIn,null) 这个Laya.Tween...

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

128. VR场景-VR场景 [ 62%]

...aya.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.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2...

来源: Laya_示例 发布时间: 20241117

129. laya.d3.core.Camera [ 61%]

...um : BoundFrustum[read-only] 获取摄像机视锥。 Camera clearColor : Vector4摄像机的清除颜色,默认颜色为CornflowerBlue。BaseCamera clearFlag : int清楚标记。BaseCamera cullingMask : int 可视层位标记遮罩值,支持混合 例:cullingMask=Math.pow(2,0)|Math.pow(2,1)为...

来源: Laya2.0_api 发布时间: 20190513

130. 材质-BlinnPhong-法线贴图 [ 61%]

...项目开发更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); this.normalMapUrl = ["../../res/threeDimen/staticModel/lizardCal/rock_norm.png", "../../res/threeDimen/staticModel/lizardCal/lizard_norm.png", "../../res/threeDimen/staticModel/lizardCal/lizard_norm.png"];...

来源: Laya_示例 发布时间: 20241117