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

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

321. 事件管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 63%]

...vent.CLICK:string = "click"。CLICK 静态属性用于定义事件对象的type类型属性值为单击事件。这个事件是由鼠标点击触发后系统派发的事件,开发者也可以调用event()方法派发这些事件,如何派发事件会在下面的内容涉及。 (图2-2) 点...

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

322. laya.d3.component.volume.batchvolume.StatiVertexMergeBatchRender_API3.0 [ 63%]

...changeVertexDefine shaderValueInit Legend Object literal Variable Function Type alias Inherited constructor Inherited property Inherited method Inherited accessor Class Class with type parameter Method Enumeration Interface

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

323. laya.d3.core.material.SkyProceduralMaterial_API3.0 [ 62%]

...turns void effectiveProperty effectiveProperty(): Map<string, ShaderDataType> Inherited from Material.effectiveProperty Defined in laya/d3/core/material/Material.ts:534 get all material uniform property Returns Map<string, ShaderDataType> event event(type: string, data?: any): boolean In...

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

324. laya.physics.RigidBody [ 62%]

...果RigidBody owner : Node [只读]获取所属Node节点。 Component  type : String 刚体类型,支持三种类型static,dynamic和kinematic类型 static为静态类型,静止不动,不受重力影响,质量无限大,可以通过节点移动,旋转,缩放进行控制 dynamic为...

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

325. laya.d3.core.ui3d.UI3D_API3.0 [ 59%]

...itFlag __init__ changeVertexDefine shaderValueInit Legend Class Class with type parameter Constructor Method Accessor Object literal Variable Function Type alias Inherited property Inherited method Inherited accessor Enumeration Interface Static property

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

326. 组件装饰器说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 57%]

...需要显示Tips或属性的中文别名等完整功能需求 @property({ type: String, caption: "IDE显示用的别名", tips: "这是一个文本对象,只能输入文本哦" }) public text1: string = ""; //装饰器属性类型的简写方式,适用于只定义类型的需求 @property(String...

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

327. 场景管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 56%]

...Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Button }) public uiBtn: Laya.Button; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Even...

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

328. 3D粒子 · LayaAir3.4 · 引擎文档 · LAYABOX [ 47%]

...的体积或表面,以及起始速度的方向。 (图3.1.3-1) Shape Type:形状的选择会影响可以发射粒子的区域,还会影响粒子的初始方向。例如,一个Sphere向各个方向向外发射粒子,一个Cone发射一个发散的粒子流。 1,Sphere :球,可以...

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

329. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 47%]

...的体积或表面,以及起始速度的方向。 (图3.1.3-1) Shape Type:形状的选择会影响可以发射粒子的区域,还会影响粒子的初始方向。例如,一个Sphere向各个方向向外发射粒子,一个Cone发射一个发散的粒子流。 1,Sphere :球,可以...

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

330. 实体组件系统 · LayaAir3.4 · 引擎文档 · LAYABOX [ 44%]

...Laya; @regClass() export class NewScript extends Laya.Script { @property({ type : Laya.Sprite}) public spr: Laya.Sprite; onAwake(): void { this.spr.size(512, 313); //设置Sprite大小 this.spr.loadImage("atlas/comp/image.png"); //添加纹理 } } 效果如图4-2所示: (图4-2) 4.1.2 3D节点...

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