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

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

131. 2D节点使用3D · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...和Sprite对象中: // 把3D摄像机视图画到256宽高的纹理上 _camera.renderTarget = new Laya.RenderTexture(256, 256, Laya.RenderTargetFormat.R8G8B8A8, Laya.RenderTargetFormat.DEPTHSTENCIL_24_8); // 再将离屏3D画到2D节点上,至此,就完成把3D画到2D的基础渲染流程 sp....

来源: Laya3.0_文档 发布时间: 20240910

132. 求助 Uncaught SyntaxError: Unexpected identifier [ 75%]

...scene= Laya.stage.addChild(new Scene()) as Scene; //初始化照相机 var camera = scene.addChild(new Camera()) as Camera; camera.transform.position = new Vector3(0, 3, 3); camera.transform.rotate(new Vector3( -45, 0, 0), true, false); camera.addComponent(CameraMoveScript); // 生成平面,其实...

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

133. rigidBody.applyForce 物体不会移动 [ 74%]

...default class GameUI { //宣告場景 private scene: Laya.Scene3D; private camera: Laya.Camera; private directionlight: Laya.DirectionLight; private character: Laya.Sprite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0, 0.2); private translateS:...

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

134. 我就在unity中加了一个cube,导出后,在laya预览中怎么会有2个cube,而且位置还不一样,也没有贴图 [ 74%]

...ild(scene); //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.ambientColor = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Laya....

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

135. 3d 轮廓描边示例改描边颜色无效 [ 74%]

...边颜色,这种能实现吗?         createDrawMeshCommandBuffer(camera:Camera,renders:BaseRender[],materials:Material[]):CommandBuffer{ var buf:CommandBuffer = new CommandBuffer(); //当需要在流程中拿摄像机渲染效果的时候 设置true camera.enableBuiltInRenderTexture = true;...

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

136. 官方LayaAir之灯光一节示例背景在微信里表现不一致 [ 74%]

...ene()); //创建摄像机(纵横比,近距裁剪,远距裁剪) var camera:Laya.Camera = new Laya.Camera(0,0.1,100); //加载到场景 scene.addChild(camera); //移动摄像机位置 camera.transform.translate(new Laya.Vector3(0, 4, 8)); //旋转摄像机角度 camera.transform.rotate(new Lay...

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

137. 前述问题this.sp3Role.transform.position无效 [ 74%]

...回复的this.sp3Role.transform.position这个方法只让主角移动和camera.transform.position相机跟随无效,因为主角无法移动,camara还没办法尝试,可否用我的demo试一试看看什么原因呢 附件 : --> 3dcamera.zip 2022-06-22 添加评论 免费帖 --> 分享 微博...

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

138. position -position应该怎么写?? [ 73%]

...wDir; Laya.timer.frameLoop(1, this, viewDirLoop); function viewDirLoop() { cameraPos = camera.position; viewDir = camera.position - lineMesh.transform.position; console.log(viewDir); lineMesh.transform.lookAt(new Laya.Vector3(3, 3, 3), viewDir, true); } 2017-06-13 添加评论 免费帖 --> 分享 ...

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

139. 3D坐标转2D坐标问题 [ 73%]

...相关的链接 提交 1 个回复 pink曦曦 赞同来自: 已解决 if(camera.boundFrustum.containsPoint(_position) == 1){ 判断下是否在视野内即可 2019-07-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发...

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

140. 动画-旧版骨骼动画 [ 73%]

....Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 1.5, 3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya....

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