大约有 332 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0056 秒)
Laya_社区(194) Laya2.0_文档(67) Laya_示例(44) Laya3.0_api(15) Laya3.0_文档(10) laya_api(1) Laya2.0_api(1)
...ya.Scene3D()) as Laya.Scene3D; this.scene3d = scene; //添加照相机 var camera: Laya.Camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); //添加方向光 ...
来源: Laya_社区 发布时间: 20190618
摄像机背景与天空盒设置 //设置背景颜色 camera.clearColor = new Laya.Vector3(0.5,0.5,0.6); 天空盒 //创建天空盒 var skyBox:Laya.SkyBox = new Laya.SkyBox(); //清除标记,使用天空(必须设置,否则无法显示天空) camera.clearFlag = Laya.BaseCamera.CLEARFLAG_S...
来源: Laya_社区 发布时间: 20170809
...s Laya.Script { testData = new Laya.Vector3(1, 1, 1); @property(Laya.Camera) camera: Laya.Camera; onStart() { //@ts-ignore window.camera = this.camera; console.log("Game start", this.camera._up); console.log( "Game start", this.camera._up.x, ...
来源: Laya_社区 发布时间: 20241029
....Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya...
来源: Laya_社区 发布时间: 20171127
... var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight = scene.a...
来源: Laya2.0_文档 发布时间: 20210714
...开发文档好不详细。。小白感觉好吃力呀 注释掉设置camera视图尺寸的代码 也就是 camera.viewport = new Laya.Viewport(rect.x, rect.y, rect.width, rect.height)这一行 然后节点就会全屏显示 但是模型也变得非常大 那就使用localScale将...
来源: Laya_社区 发布时间: 20200401
... var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight = scene.a...
来源: Laya2.0_文档 发布时间: 20210715
...reate(this, function(scene:Scene3D):void { Laya.stage.addChild(scene); var camera:Camera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); })); ```
来源: Laya2.0_文档 发布时间: 20210714
...Laya.Scene3D; //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 6, 9.5)); camera.transform.rotate(new Laya.Vector3(-15, 0...
来源: Laya_社区 发布时间: 20201120
...ll Inherited Externals Only exported Menu Globals "laya/d3/WebXR/core/WebXRCamera" WebXRCamera Class WebXRCamera author miner 类用于创建WebXR摄像机。 Hierarchy Camera WebXRCamera Index Constructors constructor Properties _cacheDepth _cacheDepthTexture _extra _forward _scene _up _url clearFl...
来源: Laya3.0_api 发布时间: 20231115