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

大约有 3,244 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0074 秒)

391. 加载不了模型 [ 77%]

...));         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

392. IDE创建3D示例项目(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 77%]

...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

393. 加载-错误处理和进度 [ 77%]

...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

394. 3D加载不了 [ 77%]

...));         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

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

...像机角度 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

396. Laya2.2问题,有没有遇到的? [ 77%]

... 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

397. IDE创建3D示例项目(TypeScript-3D基础(TS)-快速开始一个LayaAir3D项目) [ 77%]

...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

398. 粒子系统-燃烧大地 [ 77%]

...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

399. 粒子系统-永恒之光 [ 77%]

...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

400. shader 问题[关闭] [ 77%]

...= 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