大约有 603 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0071 秒)
Laya_社区(442) Laya2.0_文档(39) Laya3.0_文档(34) Laya_示例(27) Laya3.0_api(24) Laya2.0_示例(21) Laya2.0_api(10) laya_api(6)
..., 600, 1000]; // 多重延迟尝试 const maxAttempts = delays.length; if (attempt >= maxAttempts) { console.error("达到最大重试次数,播放失败"); return; } const delay = delays[attempt]; ...
来源: Laya_社区 发布时间: 20250930
...t rotation from one vector to another. Both vectors are assumed to be unit length. Parameters out: Quaternion the receiving quaternion. a: Vector3 the initial vector b: Vector3 the destination vector Returns boolean out setWorldLossyScale setWorldLossyScale(value: Vector3): void Defined in laya/d3/c...
来源: Laya3.0_api 发布时间: 20231115
...graphics gray hScrollBarSkin height hideFlags hitArea is3D itemRender left length mask mouseEnabled mouseX mouseY numChildren page parent pivotX pivotY repeatX repeatY right rotation scaleX scaleY scene scrollBar scrollRect scrollType selectedIndex selectedItem selection skewX skewY spaceX spaceY st...
来源: Laya3.0_api 发布时间: 20231115
...户在音视频中跳跃播放,会得到多个缓冲范围。 buffered.length返回缓冲范围个数。如获取第一个缓冲范围则是buffered.start(0)和buffered.end(0)。以秒计。 Returns any TimeRanges(JS)对象 compareMode get compareMode(): TextureCompareMode set compareMode(value: T...
来源: Laya3.0_api 发布时间: 20231115
...t rotation from one vector to another. Both vectors are assumed to be unit length. Parameters out: Quaternion the receiving quaternion. a: Vector3 the initial vector b: Vector3 the destination vector Returns boolean out setWorldLossyScale setWorldLossyScale(value: Vector3): void Overrides Transform3...
来源: Laya3.0_api 发布时间: 20231115
...shCollider检测出物体的3角面 for (var i:int = 0; i < _outHitAllInfo.length; i++) { var trianglePositions = _outHitAllInfo[i].trianglePositions; phasorSpriter3D.line(trianglePositions[0], _color, trianglePositions[1], _color); phasorSpriter3D.line(trianglePositions[1], _color, trianglePosition...
来源: Laya_示例 发布时间: 20251219
... class AnyName { static testEnable() { return Editor.scene.getSelection().length > 0; } @IEditor.menu("Hierarchy/test", { enableTest: ()=> AnyName.testEnable() } ) static test() { console.log("click menu"); } } 九、创建菜单 可以创建新菜单,并用代码控制弹出。方法为: ...
来源: Laya3.0_文档 发布时间: 20251010
...: any, lineWidth: number = 1): DrawLinesCmd | null { if (!points || points.length < 4) return null; return this.addCmd(DrawLinesCmd.create(x, y, points, lineColor, lineWidth)); } 代码示例: let sp = new Laya.Sprite(); //画折线 sp.graphics.drawLines(20, 88, [0, 0, 39, -50, 78, 0, 120, -50]...
来源: Laya3.0_文档 发布时间: 20251010
...ion.rayCastAll(ray,this.outs); //如果射线碰撞到物体 if (this.outs.length !== 0) { for (let i = 0; i 射线检测里用于指定检测碰撞组的参数collisionMask对应的是前文介绍的canCollideWith ### 五、Cannon.js物理引擎的使用 之前的章节一直在介绍LayaAir基于B...
来源: Laya2.0_文档 发布时间: 20210715
...、最小长度、最大长度,如图19-1所示: (图19-1) 4.2.1 长度length 长度的默认值为0,这并不是表示没有长度,而是自动取得关节的两个关节锚点之间的长度。 如果我们手动设置一个长度的话,那这里的长度就是两个关节在振荡停止...
来源: Laya3.0_文档 发布时间: 20251010