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

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

1341. laya.d3.physics.PhysicsComponent_API3.0 [ 30%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 canScaleShape canScaleShape: boolean = true Defined in laya/d3/physics/PhysicsComponent.ts:206 是否可以缩放Shape。 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:2...

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

1342. laya.physics.ChainCollider_API3.0 [ 30%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 fixture fixture: any Inherited from ColliderBase.fixture Defined in laya/physics/ColliderBase.ts:25 [只读]b2Fixture对象 label label: string Inherited from ColliderBase.label Defined in laya/physics/ColliderBa...

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

1343. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 30%]

...我们来借助css样式来展示这种效果。下面我们看下简单的脚本怎么实现这种效果。 ```javascript var data = '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var DOMURL = window.URL || window.webkitURL || window; var img = new Image(); var svg = new Blob([data], {typ...

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

1344. LayaAirIDE的可视化2D物理编辑入门(TypeScript-IDE篇(TS)-使用2d物理系统) [ 30%]

...,不需要写一行代码。 从这个章节里,我们就了解一下脚本中有哪些物理生命周期方法。 > 如果有对生命周期也不理解的新手,请先去Layabox官网文档的组件化开发相关文档去补一下基础。 ### 3.1 onTriggerEnter `onTriggerEnter`是在发生...

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

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

...中,新建一个2D空项目,在Scene2D下新建一个自定义的组件脚本,并添加如下代码: onAwake(): void { //侦听自定义的事件"Click" this.owner.on("Click",this,()=>{ console.log("侦听到自定义的“Click”事件"); }) } //鼠标点击后执行,发送Click事件...

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

1346. laya.d3.component.volume.batchvolume.StaticBatchVolume_API3.0 [ 30%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya...

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

1347. laya.d3.physics.constraints.ConstraintComponent_API3.0 [ 30%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 disableCollisionsBetweenLinkedBodies disableCollisionsBetweenLinkedBodies: boolean = true Defined in laya/d3/physics/constraints/ConstraintComponent.ts:81 连接的两个物体是否进行碰撞检测 owner owner...

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

1348. laya.physics.joint.WheelJoint_API3.0 [ 29%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 anchor anchor: any[] = [0, 0] Defined in laya/physics/joint/WheelJoint.ts:18 [首次设置有效]关节的链接点,是相对于自身刚体的左上角位置偏移 axis axis: any[] = [1, 0] Defined in laya/phy...

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

1349. laya.components.Animator2D_API3.0 [ 29%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya...

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

1350. 动态图集 · LayaAir3.4 · 引擎文档 · LAYABOX [ 29%]

... 二、使用动态图集 2.1 创建管理器 使用动态图集需要在脚本中实例化DynamicAtlasManager对象: //接口 constructor(config?: Partial<DynamicAtlasConfig>, autoReplace: boolean = true) 参数说明: config是创建动态图集需要的配置参数,各项参数内容...

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