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

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

451. 以前用lm文件加载模型。现在用lh文件加载模型无法贴图 [ 79%]

...h.meshRender.material = fishmaterial; fish.transform.localScale = new Laya.Vector3(0.04,0.04,0.04); fish.transform.position = new Laya.Vector3(0,0.5,0); // fish.transform.position = new Laya.Vector3(0.4,0.5,-0.35); fish.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); var anifish = fish.addCompon...

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

452. SpotLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 79%]

...Laya.SpotLight()); //设置聚光灯颜色 this.spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 this.spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = this.spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0...

来源: Laya2.0_文档 发布时间: 20210715

453. 3D场景-场景加载 [ 79%]

...ddChild(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.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2/skyCu...

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

454. 菜鸟提问:请问使用LayaAir的话,AS3原生类以及一些第三方库完全不能用是吗? [ 79%]

...AS3原生类都没法用喽,像字典类Dictionary,Timer,ByteArray,Vector.<>之类的。   另外显然的AS3事件机制全体阵亡喽?比如全部使用laya.event里面的事件机制是吗?   另外一些AS3非常常用的第三方库TweenMax之类的,显然也是无法用...

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

455. SpotLight介绍(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 79%]

...w SpotLight()) as SpotLight; //设置聚光灯颜色 spotLight.color = new Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Vector3(0.0, 1.2, 0.0); //设置聚光灯的方向 var mat:Matrix4x4 = spotLight.transform.worldMatrix; mat.setForward(new Vector3(0.15, -1.0, 0.0))...

来源: Laya2.0_文档 发布时间: 20210715

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

...; var unlitMaterial = new UnlitMaterial(); unlitMaterial.albedoColor = new Vector4(255,0,0,255); var shurikenMaterial:ShurikenParticleMaterial = new ShurikenParticleMaterial(); shurikenMaterial.color = new Vector4(255,0,0,255);   按我的理解,官方示例上的unlitMaterial.albedoColor不是...

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

457. laya.d3.core.particleshuriken.module.shape.SphereShape_API3.0 [ 79%]

...s void generatePositionAndDirection generatePositionAndDirection(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void Overrides BaseShape.generatePositionAndDirection Defined in laya/d3/core/particleShuriKen/module/shape/SphereShape.ts:56 用于生成粒子初始位...

来源: Laya3.0_api 发布时间: 20231115

458. laya.d3.core.particleshuriken.module.shape.HemisphereShape_API3.0 [ 79%]

...s void generatePositionAndDirection generatePositionAndDirection(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void Overrides BaseShape.generatePositionAndDirection Defined in laya/d3/core/particleShuriKen/module/shape/HemisphereShape.ts:59 用于生成粒子初始...

来源: Laya3.0_api 发布时间: 20231115

459. u3d 插件导出 简单场景,用最新引擎无法加载成功 [ 79%]

...amera(); scene.addChild(camera); camera.transform.localPosition = new Laya.Vector3(0,4,10); //载入并显示3D建筑 var map = Laya.Sprite3D.load("LayaScene_test/test.lh"); scene.addChild(map); //map.transform.localPosition = new Laya.Vector3(0,-4,-10); //控制摄像机 camera.addComponent(CameraM...

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

460. 2.0版本可用的CameraMoveScript.ts [ 79%]

...ipt extends Laya.Script {      /** @private */     protected _tempVector3: Laya.Vector3 = new Laya.Vector3();     protected lastMouseX: number;     protected lastMouseY: number;     protected yawPitchRoll: Laya.Vector3 = new Laya.Vector3();     protected resultRotation: Laya...

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