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

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

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

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

392. laya.d3.core.RenderableSprite3D [ 45%]

...型索引获得组件。 Sprite3D getComponentsByType(type:*, components:Vector.<Component3D>):void 通过指定类型获得所有组件。 Sprite3D getProjectionViewWorldMatrix(projectionViewMatrix:Matrix4x4):Matrix4x4 获取投影视图世界矩阵。 Sprite3D hasListener(type:String):Boo...

来源: laya_api 发布时间: 20170929

393. laya.d3.core.scene.VRScene [ 45%]

... : Array滤镜集合。可以设置多个滤镜组合。Sprite fogColor : Vector3 获取雾化颜色。 BaseScene fogRange : Number 获取雾化范围。 BaseScene fogStart : Number 获取雾化起始位置。 BaseScene globalScaleX : Number[read-only] 获得相对于stage的全局X轴缩放值...

来源: laya_api 发布时间: 20170422

394. laya.d3.core.SkinnedMeshSprite3D [ 45%]

...象数量。 Node parent : Node[read-only] 父节点。Node pickColor : Vector4RenderableSprite3D PICKCOLOR : int[static] 拾取颜色。RenderableSprite3D SAHDERDEFINE_LIGHTMAP : int[static] 精灵级着色器宏定义,光照贴图。RenderableSprite3D scene : *[read-only] 获得所属场景...

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

395. laya.d3.core.MeshSprite3D [ 45%]

...型索引获得组件。 Sprite3D getComponentsByType(type:*, components:Vector.<Component3D>):void 通过指定类型获得所有组件。 Sprite3D getProjectionViewWorldMatrix(projectionViewMatrix:Matrix4x4):Matrix4x4 获取投影视图世界矩阵。 Sprite3D hasListener(type:String):Boo...

来源: laya_api 发布时间: 20170929

396. laya.d3.core.MeshTerrainSprite3D [ 43%]

...象数量。 Node parent : Node[read-only] 父节点。Node pickColor : Vector4RenderableSprite3D PICKCOLOR : int[static] 拾取颜色。RenderableSprite3D SAHDERDEFINE_LIGHTMAP : int[static] 精灵级着色器宏定义,光照贴图。RenderableSprite3D scene : *[read-only] 获得所属场景...

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

397. laya.d3.core.MeshTerrainSprite3D [ 43%]

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

来源: laya_api 发布时间: 20170929

398. 实体组件系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

... 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); }); } } 效果如动图4-4所示: (动图4-4) 4.1.3 3D节点的进阶使用 @...

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

399. 组件装饰器说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...型 装饰器属性标识的类型支持引擎对象类型(例如:Laya.Vector3、Laya.Sprite3D、Laya.Camera等)、自定义的对象类型(需要标记@regClass())、以及TS语言的基本类型。 2.5.1 引擎对象类型 引擎对象类型的理解比较简单,暴露组件属性之...

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

400. laya.d3.core.Sprite3D_API3.0 [ 38%]

...riginal: Sprite3D, parent?: Node, worldPositionStays?: boolean, position?: Vector3, rotation?: Quaternion): Sprite3D Defined in laya/d3/core/Sprite3D.ts:57 创建精灵的克隆实例。 Parameters original: Sprite3D 原始精灵。 Default value parent: Node = null 父节点。 Default value worldP...

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