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

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

101. 官方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

102. 我就在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

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

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

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

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

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

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

108. 求ShuriKenParticle3D用法 [ 72%]

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

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

109. 关于平行光渲染投影问题,求解惑 [ 72%]

...ya.Camera; camera.orthographic = true; camera.transform.translate(new Laya.Vector3(0, 4, 8),false); camera.transform.lookAt(new Laya.Vector3(0,0,0),new Laya.Vector3(0,1,0)); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; //移动...

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

110. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 72%]

...  Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;         this.upVector3 = new Laya.Vector3(0, 1, 0);         //预加载所有资源         let resource = ["Export/LayaScene_JJF/Conventional/JJF.lh"];         Laya.loader.create(resource, Laya.Handler.create(this, ...

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