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

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

591. [LayaAirIDE3]xcode切入切出声音不播放 [ 23%]

..., 600, 1000]; // 多重延迟尝试         const maxAttempts = delays.length;          if (attempt >= maxAttempts) {             console.error("达到最大重试次数,播放失败");             return;         }          const delay = delays[attempt];       ...

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

592. laya.d3.core.Transform3D_API3.0 [ 22%]

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

593. laya.ui.List_API3.0 [ 20%]

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

594. laya.media.VideoTexture_API3.0 [ 20%]

...户在音视频中跳跃播放,会得到多个缓冲范围。 buffered.length返回缓冲范围个数。如获取第一个缓冲范围则是buffered.start(0)和buffered.end(0)。以秒计。 Returns any TimeRanges(JS)对象 compareMode get compareMode(): TextureCompareMode set compareMode(value: T...

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

595. laya.d3.renderobjs.nativeobj.NativeTransform3D_API3.0 [ 19%]

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

596. 射线检测-射线检测 [ 19%]

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

597. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 19%]

... class AnyName { static testEnable() { return Editor.scene.getSelection().length &gt; 0; } @IEditor.menu("Hierarchy/test", { enableTest: ()=&gt; AnyName.testEnable() } ) static test() { console.log("click menu"); } } 九、创建菜单 可以创建新菜单,并用代码控制弹出。方法为: ...

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

598. 绘制能力 · LayaAir3.3 · 引擎文档 · LAYABOX [ 15%]

...: any, lineWidth: number = 1): DrawLinesCmd | null { if (!points || points.length &lt; 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

599. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 11%]

...ion.rayCastAll(ray,this.outs); //如果射线碰撞到物体 if (this.outs.length !== 0) { for (let i = 0; i 射线检测里用于指定检测碰撞组的参数collisionMask对应的是前文介绍的canCollideWith ### 五、Cannon.js物理引擎的使用 之前的章节一直在介绍LayaAir基于B...

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

600. 2D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 10%]

...、最小长度、最大长度,如图19-1所示: (图19-1) 4.2.1 长度length 长度的默认值为0,这并不是表示没有长度,而是自动取得关节的两个关节锚点之间的长度。 如果我们手动设置一个长度的话,那这里的长度就是两个关节在振荡停止...

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