大约有 224 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0039 秒)
Laya_社区(130) Laya_示例(44) Laya2.0_文档(30) Laya3.0_文档(12) Laya3.0_api(5) laya_api(2) Laya2.0_api(1)
....bgColor = "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.5, 1)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //3.清除照相机颜色 camera.clearColor = ...
来源: Laya_示例 发布时间: 20241123
3D空间转2D空间的问题 3D空间转2D空间我用的是 this.camera.viewport.project(this.playerArray[i].transform.position, this.camera.projectionViewMatrix, this.imgPos2); 转换的坐标到this.imgPos2里面。 像这样的一个场景。加载图片到3D物体上跟着3D物体跑动这样...
来源: Laya_社区 发布时间: 20190212
...Laya.Scene.load("../../res/threeDimen/scene/particle/Example_01.ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)) ; camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript);class Particle_Scene { constructor() { Laya3D.init(0, 0, true); Laya.stage.s...
来源: Laya_示例 发布时间: 20241123
...; var scene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; var camera = scene.addChild(new Laya.Camera(0, 0.1, 0)) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 2, 20)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = new Laya.Vecto...
来源: Laya_社区 发布时间: 20220815
...成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //清除摄像机的标记 camera.clearFlag = BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as D...
来源: Laya2.0_文档 发布时间: 20210715
...觉效率有点低啊…… 比如: package { import laya.d3.core.BaseCamera; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.RandX; import...
来源: Laya_社区 发布时间: 20170331
...ddChild(Laya.Scene.load("../../res/threeDimen/scene/Arena/Arena.ls")); var camera = scene.addChild(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.SkyB...
来源: Laya_示例 发布时间: 20241123
....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( -30, 0, 0), true, false); camera.addComponent(CameraMoveScript); came...
来源: Laya_示例 发布时间: 20241123
...emo.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Camera"); camera.addComponent(CameraMoveScript); });class PBRDemo { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCRE...
来源: Laya_示例 发布时间: 20241123
....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.5, 1)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.create("../../res/threeDimen/skinM...
来源: Laya_示例 发布时间: 20241123