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

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

391. 2D精灵光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...形状的光源。 三、通过代码使用 在LayaAir3-IDE中新建一个脚本,添加到Scene2D节点后,加入下述代码,实现一个2D精灵光的效果: const { regClass, property } = Laya; @regClass() export class SpriteLight extends Laya.Script { @property({type: Laya.Sprite}) priva...

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

392. laya.physics.joint.PulleyJoint_API3.0 [ 53%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 collideConnected collideConnected: boolean = false Defined in laya/physics/joint/PulleyJoint.ts:29 [首次设置有效]两个刚体是否可以发生碰撞,默认为false otherAnchor otherAnchor: any[] = [0, 0]...

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

393. [LayaAirIDE3]安装后ide一片空白 [ 53%]

...为绿色版)。 顺便一提,那beta2,我在3D主相机下挂了个脚本,然后,onAwake会进两次,onStart倒是一次。 最无语的是onMouseClick之类回调全都不会进的,beta嘛,本来懒得讲,全指望新版本了。 附件 : --> 2025-04-02 添加评论 免费帖 -->...

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

394. laya.physics.joint.WeldJoint_API3.0 [ 53%]

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

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

395. laya.d3.component.hlod.HLOD_API3.0 [ 53%]

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

396. Laya.PlatformClass.createClass undefined [ 53%]

...---------- 我忘记是不是这个原因了 好久了,在通信的那个脚本下面  window["NativeManager"] = NativeManager; 写类似这样的代码。 附件 : --> 2019-09-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

397. laya.physics.joint.MouseJoint_API3.0 [ 53%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 anchor anchor: any[] Defined in laya/physics/joint/MouseJoint.ts:18 [首次设置有效]关节的链接点,是相对于自身刚体的左上角位置偏移,如果不设置,则根据鼠标点击点作为连...

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

398. laya.physics.ColliderBase_API3.0 [ 53%]

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

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

399. [LayaAirIDE3]2d寻路怎么添加碰撞体 [ 53%]

...就和导航精灵一起移动了,然后在这个新加的节点下加个脚本,里面做个侦测就行了  onTriggerEnter(other: any): void {}     2025-07-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 173*****903 相关问...

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

400. 物理刚体(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 53%]

...y3D** 刚体就是动态碰撞器。任何物体想要受重力影响,受脚本施加的力的作用,或通过物理引擎来与其他物体交互,都必须包含一个刚体组件。更详细的使用情况可以查看刚体的文档:[地址](https://layaair.ldc.layabox.com/api2/Chinese/ind...

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