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

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

531. laya.d3.core.MeshTerrainSprite3D [ 48%]

...型索引获得组件。 Sprite3D getComponentsByType(type:*, components:Vector.<Component3D>):void 通过指定类型获得所有组件。 Sprite3D  getHeight(x:Number, z:Number):Number 获取地形高度。 MeshTerrainSprite3D getProjectionViewWorldMatrix(projectionViewMatrix:Matrix4x4):...

来源: laya_api 发布时间: 20170929

532. 多种碰撞器形状(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 48%]

...enderer.material = mat4; //设置位置 cone.transform.position = new Laya.Vector3(Math.random() * 4 - 2, 10, Math.random() * 4 - 2); var rigidBody = cone.addComponent(Laya.Rigidbody3D); //创建球型碰撞器 var coneShape = new Laya.ConeColliderShape(raidius, height); //设置刚体碰撞器的...

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

533. 材质的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之Material材质) [ 46%]

...osition; //将创建的球平移 this.sphere2.transform.translate(new Laya.Vector3(0, 1.3, 0),false); //将从导出球上拿到的材质 贴给代码创建的球 this.sphere2.meshRenderer.material = billinMaterial; ``` 然后就可以看到效果了,如图4所示: ![](img/4.png)(图4) ### 2. ...

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

534. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

... { //注意这里面的属性不要使用到Laya引擎里的类型,比如Vector3这些,是不可以的 Editor.typeRegistry.addTypes([ { name: "MyTestSettingsType", properties: [ { name: "option1", type: "boolean", default: true }, { name: "option2", type: "string", default: "", } ] } ]); Editor....

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

535. 一个简单的跑酷曲面shader分享 [ 46%]

...CurveShader"); this.enableVertexColor = false; this.albedoColor = new Laya.Vector4(0.0, 0.0, 0.0, 0.0); this.xoffset = 15.0; this.yoffset = -15.0; this.zdistance = 200.0; } public static initShader() { var attributeMap: object = { "a_Position": Laya.VertexMesh.MESH_POSITION0, "a_Normal": Laya.Vertex...

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

536. 材质的功能介绍(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 45%]

...ransform.position; //将创建的球平移 sphere2.transform.translate(new Vector3(0, 1.3, 0),false); //将从导出球上拿到的材质 贴给代码创建的球 sphere2.meshRenderer.material = billinMaterial; ``` 然后就可以看到效果了,如图4所示: ![](img/4.png)(图4) ### 2. 修改...

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

537. 材质的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 45%]

...osition; //将创建的球平移 this.sphere2.transform.translate(new Laya.Vector3(0, 1.3, 0),false); //将从导出球上拿到的材质 贴给代码创建的球 this.sphere2.meshRenderer.material = this.billinMaterial; ``` 然后就可以看到效果了,如图4所示: ![](img/4.png)(图4) ### ...

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

538. 3D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

... colorIndex); } } private _getRandomPosition(positionRanvge: number): Laya.Vector3 { let getRangeRandom = () => { return (Math.random() - 0.5) * positionRanvge; } return new Laya.Vector3(getRangeRandom(), 0.3, getRangeRandom()); } } shader代码如下: Shader3D Start { type:Shader3D name:PBRCol...

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

539. laya.d3.core.particleShuriKen.ShuriKenParticle3D [ 43%]

...cleSystem[read-only] 获取粒子系统。 ShuriKenParticle3D pickColor : Vector4RenderableSprite3D PICKCOLOR : int[static] 拾取颜色。RenderableSprite3D  POSITIONSCALE : int[static] ShuriKenParticle3D  ROLANGULARVELOCITYCONST : int[static] ShuriKenParticle3D  ROLANGULARVELOCITYCONSTMAX ...

来源: Laya2.0_api 发布时间: 20190513

540. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...mation动画节点添加动画脚本,添加的代码如下: ... import Vector3 = Laya.Vector3; ... export class AnimationScript extends Laya.AnimatorStateScript { ... private model: Laya.Sprite3D; /**@internal */ setPlayScriptInfo(animator: Laya.Animator | Laya.Animator2D, layerindex: number, pl...

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