大约有 959 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0072 秒)
... Defined in laya/d3/physicsCannon/shape/CannonCompoundColliderShape.ts:135 获取子形状数量。 Returns number removeChildShape removeChildShape(shape: CannonColliderShape): void Defined in laya/d3/physicsCannon/shape/CannonCompoundColliderShape.ts:79 移除子碰撞器形状。 Parameters shape...
来源: Laya3.0_api 发布时间: 20231102
...nt(): number Defined in laya/d3/physics/shape/CompoundColliderShape.ts:146 获取子形状数量。 Returns number removeChildShape removeChildShape(shape: ColliderShape): void Defined in laya/d3/physics/shape/CompoundColliderShape.ts:119 移除子碰撞器形状。 Parameters shape: ColliderShape ...
来源: Laya3.0_api 发布时间: 20231115
...this.xx.CenterY = 0; 3.2 数据源dataSource 在实际开发中,从网络获取的数据有时候与 UI 组件预期的数据结构不完全一致,尤其在处理列表组件时更为常见。此时可以通过设置组件的 dataSource,对原始数据进行结构调整,使其满足列表渲...
来源: Laya3.0_文档 发布时间: 20251010
...脚本一次 owner owner: Node Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Defined in laya/components/Component.ts:35...
来源: Laya3.0_api 发布时间: 20231115
...义。设置名称后可以通过IK组件上的getChain(name: string)方法获取对应的Chain。如果未设置,则默认使用end节点的name。 Type:类型。有position和lookAt两种。 position:位置模式。在此模式下,链的末端节点会尽可能到达设置的空间坐...
来源: Laya3.0_文档 发布时间: 20260131
...佳的选择。 Layabox开发者QQ群 QQ群号:330223972 点击此处获取原文 2016-02-26 1 0 分享 微博 QZONE 微信 ourme 赞同来自: layabox 期待中 2016-03-21 1 1 分享 微博 QZONE 微信 crylg 赞同来自: 能深度剖析一下,为什么性能会优于cocos 吗 2016-04-28 0 ...
来源: Laya_社区 发布时间: 20160226
... //初始化引擎 Laya.init(0,0); var Hls:any = Laya.Browser.window.Hls;//获取对Hls的引用。 var plyr:any = Laya.Browser.window.plyr;//获取对plyr的引用 //获取video对象,就是页面上命名为“player”的标签 var video:any = Laya.Browser.document.querySelector('#player'); if(...
来源: Laya3.0_文档 发布时间: 20251010
...代码逻辑中调用实现。 4.1 角色位置 position 角色位置用于获取和设置角色控制器的位置,通常应用于获取角色当前位置,或者设置角色位置初始化(例如出生点与传送点)等需求。 代码设置示例如下: const { regClass, property } = Lay...
来源: Laya3.0_文档 发布时间: 20251010
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...
来源: Laya3.0_api 发布时间: 20231115
... wx.loadSubpackage() 返回的一个 LoadSubpackageTask,可以通过它获取当前下载进度。 参考微信小游戏官方文档。 打印的参数的意义分别是: progress:下载进度; totalBytesWritten:已经下载的数据长度; totalBytesExpectedToWrite:预期需要下载...
来源: Laya3.0_文档 发布时间: 20251010