大约有 3,244 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0074 秒)
Laya_社区(2446) Laya3.0_api(242) Laya2.0_文档(138) Laya2.0_api(136) laya_api(135) Laya3.0_文档(77) Laya_示例(52) Laya2.0_示例(18)
...)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = Laya.Vector3(255,255,0.1); camera.addComponent(CameraMoveScript); //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); ...
来源: Laya_社区 发布时间: 20180427
...w Vector3(0, 3, 3)); camera.transform.rotate(new Vector3(-30, 0, 0), true, false); //添加方向光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatrix.setForward(new Vect...
来源: Laya2.0_文档 发布时间: 20210714
...Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT); // 侦听加载失败 Laya.loader.on(Event.ERROR, this, onError); })(); function onAssetLoaded(texture) { // 使用texture console.log("加载结束"); } // 加载进度侦听器 function onLoading(progr...
来源: Laya_示例 发布时间: 20251209
...)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = Laya.Vector3(255,255,0.1); camera.addComponent(CameraMoveScript); //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); ...
来源: Laya_社区 发布时间: 20180427
...像机角度 camera.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; //移动灯光位置 light.transform.translate(new Laya.Vector3(0,5,0)); //设置灯光方向 light.dir...
来源: Laya_社区 发布时间: 20180307
... GameConfig.startScene = ""; GameConfig.sceneRoot = ""; GameConfig.debug = false; GameConfig.stat = false; GameConfig.physicsDebug = false; GameConfig.exportSceneToJson = true; GameConfig.init(); class Main { constructor() { Laya.isWXOpenDataContext = true; Laya.isWXPosMsg = true; if (window["Laya...
来源: Laya_社区 发布时间: 20200104
...tor3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); //添加方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.transform.worldMatri...
来源: Laya2.0_文档 发布时间: 20210714
...or3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var particleSprite3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/particle/ETF_Burning_Ground.lh"));class Particle_BurningGround { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stag...
来源: Laya_示例 发布时间: 20251209
...or3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); var particleSprite3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/particle/ETF_Eternal_Light.lh"));class Particle_EternalLight { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage....
来源: Laya_示例 发布时间: 20251209
...= 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CONST3D2D.BYTES_PE] this.color = [4, Laya.WebGLContext.FLOAT, false, _vlen, 4 * Laya.CONST3D2D.BYTES_PE] } } sprite.customRender = fun...
来源: Laya_社区 发布时间: 20180313