大约有 169 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)
...远程分支。效果如下图所示。  ##### 5.1.2 获取layaAir官方分支的最新版本 layaAir远程分支添加成功后,可以使用 `git fetch layaAir` 命令获取layaAir官方的分支到本地。  ##### 5.1.3 合并分支 当本地已存在layaA...
来源: Laya2.0_文档 发布时间: 20210714
...也可以通过代码来设置,上述示例演示了如何通过计时器获取每一秒更新clip.clipX切片,通过每秒更新数字实现计时器的功能,有兴趣的读者可以自己通过代码设置Clip,创建出符合自己项目中需要的Clip。 **示例代码:** ```javascrip...
来源: Laya2.0_文档 发布时间: 20210714
...长轮询技术。 轮询是指客户端定期向服务器发送请求来获取最新数据,这种方式会造成大量不必要的请求,浪费带宽和服务器资源; 长轮询虽然有所改进,但仍不是真正意义上的实时通信。为了解决这些问题,HTML5 规范引入了 ...
来源: Laya3.0_文档 发布时间: 20251010
...rivate intensity: number = 1.8; // 定义灯光强度 onAwake(): void { // 获取 FreeformLight2D 组件 this.lightComp = this.owner.getComponent(Laya.FreeformLight2D); //灯光的顶点通常建议是在IDE中可视化配置,这里是为了演示如何通过代码动态设置顶点数据,方便...
来源: 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
... 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
... 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
... 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
...tTween()或是Laya.Tween.getTweens()方法查询对象关联的缓动。 //获取对象上的第一个缓动 let tween = Tween.getTween(aSprite); if (tween != null) tween.kill(); //获取对象上的全部缓动 let tweens = Tween.getTweens(sSprite); tweens.forEach(tween => tween.kill()); kill()...
来源: 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