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

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

101. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 73%]

...ddChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Vector3(-15, 0, 0), true, false); //创建平行光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vec...

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

102. 官方DynamicBatchTest照做为什么动态合不了批? [ 73%]

...e = Laya.stage.addChild(new Laya.Scene3D()); scene.ambientColor = new Laya.Vector3(1, 1, 1);   var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 6.2, 10.5)); camera.transform.rotate(new Laya.Vector3(-40, 0, 0), true, false); camera.addCompone...

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

103. 我就在unity中加了一个cube,导出后,在laya预览中怎么会有2个cube,而且位置还不一样,也没有贴图 [ 73%]

...ddChild(new Laya.DirectionLight()); directionLight.ambientColor = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.diffuseColor = new Laya.Vector3(1.6, 1.6, 1.6); directionLight.direction = new Laya.Vector3(1, -1, 0); //加载到场景 s...

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

104. 修改position与修改localPosition结果不一致(同处于3d场景下的两个节点) [ 72%]

...h.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture...

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

105. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 72%]

...ddChild(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.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6...

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

106. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 72%]

...aya.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.Vector4(0.2, 0.2, 0.2, 1.0); var directionLight = scene.addChild(new Laya.DirectionLight()) as Laya.Direction...

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

107. Cannot read property 'rayCast' of undefined [ 72%]

...ene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.isAlpha = true; Laya3D.init(0, 0, co...

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

108. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 72%]

..._NONE;         Laya.Stat.show();         this.tmpVector = new Laya.Vector3(0, 0, 0);         this.scene = Laya.stage.addChild(new Laya.Scene3D());         //初始化照相机         let camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100));         camera.transform.tra...

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

109. 求ShuriKenParticle3D用法 [ 72%]

...rt Vector2                  = Laya.Vector2;     import Vector3                  = Laya.Vector3;     import Vector4                  = Laya.Vector4;     import Particle3D               = Laya.Particle3D;     import TextureSh...

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

110. 材质-物理基础渲染材质 [ 72%]

...Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var Vector3 = Laya.Vector3; var scene = Laya.stage.addChild(new Laya.Scene()); //var env:String = 'inthegarden'; var env = 'sp_default'; //var env = 'AtticRoom'; //var env = 'overcloud'; var envinfo = '../../res/threeDimen/env/' ...

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