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

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

531. 组件属性的代码使用 · LayaAir3.4 · 引擎文档 · LAYABOX [ 76%]

... type : Laya.Sprite3D}) public cube: Laya.Sprite3D; private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图1-4所示: (动图1-4) 1.3 3D节点的进阶使用 @pr...

来源: Laya3.0_文档 发布时间: 20251010

532. layaNative测试运行原生app时,laya3D解析动画处报错 [ 76%]

...ationClipParser04.READ_ANIMATIONS方法下的 var floatArrayKeyframe = new Vector3Keyframe(); 大致原因是。引擎在进入游戏前会判断window.conch是否是原生,,如果是原生。。在laya.d3.js库中的17577                 if (Render.supportWebGLPlusAnimation) { ...

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

533. WaterPrimaryMaterial的使用 [ 76%]

...PlaneMesh(10, 10))) as Laya.MeshSprite3D; // box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); // var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); // var material: Laya.WaterPrimaryMaterial = new Laya.WaterPrimaryMaterial(); var material: Laya.WaterPrimaryMaterial...

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

534. 我想用代码来绘制一个3D球如何弄呢?看我写的 [ 76%]

...hild(new Laya.Camera(0, 0.1, 100)); // camera.transform.translate(new Laya.Vector3(0, 0.8, 1.0)); // camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; camera.addComponent(CameraMoveScript); //球体 var sphere = new Laya.SphereMesh(10,10,10); var sphereMesh...

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

535. transform的旋转和移动是异步方法吗? [ 76%]

...添加到场景中的代码 // 先移动锚点 cube.transform.pivot = new Vector3(                 cube.transform.pivot.x + 0,                 cube.transform.pivot.y - height/2,                 cube.transform.pivot.z - width/2); // 旋转             cube...

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

536. 3D灯光与阴影 · LayaAir3.4 · 引擎文档 · LAYABOX [ 76%]

...的范围 pointCom.range = 3.0; pointLight.transform.position = new Laya.Vector3(0.0, 1, 0.0); 三、DirectionLight Direction Light(平行光)与点光区别较大,它有固定的一个方向,可通过弧度值设定,并且也没有衰减和光照范围,会对全场景所有模型进行...

来源: Laya3.0_文档 发布时间: 20251010

537. laya.d3.physics.shape.SphereColliderShape_API3.0 [ 76%]

...ape.ts:18 形状方向_Z轴正向 Accessors localOffset get localOffset(): Vector3 set localOffset(value: Vector3): void Inherited from CompoundColliderShape.localOffset Defined in laya/d3/physics/shape/ColliderShape.ts:127 Shape的本地偏移。 Returns Vector3 Inherited from CompoundColliderShape...

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

538. CommandBuffer · LayaAir3.4 · 引擎文档 · LAYABOX [ 76%]

...指令 setShaderData//设置shader数据,可以设置shader中的texture vector number等 setGlobalShaderData//设置全局数据,可以用于所有的shaderblitScreenQuad//通过全屏四边形将源纹理渲染到目标渲染纹理指令。blitScreenQuadByMaterial//通过全屏四边形将源...

来源: Laya3.0_文档 发布时间: 20251010

539. 3D模型无法用Tween类吗 [ 75%]

...3D; scene.addChild(layaMonkey); layaMonkey.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); layaMonkey.transform.localPosition = new Laya.Vector3(0,1,0); layaMonkey.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); //移动模型 Laya.Tween.to(layaMonkey,{x:0,y:-1,z:-3},5000,Laya.Ease.l...

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

540. laya.d3.resource.SolidColorTexture2D [ 75%]

... BaseTexturePublic Methods  MethodDefined By  SolidColorTexture2D(color:Vector4) 创建一个 SolidColorTexture2D 实例。 SolidColorTexture2DProtected Methods  MethodDefined By  detoryResource():void[override] 销毁资源。 SolidColorTexture2D  recreateResource():void[override] 重新创...

来源: laya_api 发布时间: 20170929