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

大约有 282 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)

111. 射线检测-选取物体 [ 69%]

...it() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.viewportPointToRay(point, ray); //射线检测获取所有检测碰撞到的物体 Laya.Physics.rayCastAll(ray, _outHitAllInfo, 30, 0); } (functio...

来源: Laya_示例 发布时间: 20240930

112. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 69%]

...   private materials:Laya.Material[] = [];      public static instance: CommandBuffer_Outline ;      private isUseOuline: boolean = true; // 控制是否使用描边          public static GetInstance(): CommandBuffer_Outline{         if(this.instance ==...

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

113. 官方DynamicBatchTest照做为什么动态合不了批? [ 69%]

...浏览: 1139 关注: 2 人 Laya_Aaron • 2019-11-12 18:06 2.2.0 以后 有instance 合并 无面数限制 1593503544用户 • 2020-07-07 19:46 @Laya_Aaron:2.2.0 以后 有instance 怎么使用有文档或者例子吗

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

114. laya.utils.Pool_API3.0 [ 68%]

...。 item: any 对象。 Returns void Static recoverByClass recoverByClass(instance: any): void Defined in laya/utils/Pool.ts:46 根据类名进行回收,如果类有类名才进行回收,没有则不回收 Parameters instance: any 类的具体实例 Returns void Globals "laya/utils/Pool" Pool cl...

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

115. image在相应loaded的时候,无法正确获取高度 [ 68%]

... this.y, this.width, this.height, createOption); Matter.World.add(GameMain.instance.engine.world, this.matterBody); this.matterBody.layaSprite = this; Matter.Events.on(GameMain.instance.engine, 'beforeUpdate', (()=> { console.log("update", this.x, this.y, this.width, this.height) }).bind(this)); ...

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

116. 代码模式的快捷键设置(JavaScript-IDE篇(JS)-代码模式基础) [ 67%]

...速打开 Quick Open | | `Ctrl + Shift + N` | 新窗口/实例 New window/instance | | `Ctrl + Shift + W` | 关闭窗口/实例 Close window/instance | | `Ctrl+X` | 剪切行(空选定) Cut line (empty selection) | | `Ctrl+C` | 复制行(空选定)Copy line (empty selection) | | `Alt+ ↑ / ...

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

117. 代码模式的快捷键设置(TypeScript-IDE篇(TS)-代码模式基础) [ 67%]

...速打开 Quick Open | | `Ctrl + Shift + N` | 新窗口/实例 New window/instance | | `Ctrl + Shift + W` | 关闭窗口/实例 Close window/instance | | `Ctrl+X` | 剪切行(空选定) Cut line (empty selection) | | `Ctrl+C` | 复制行(空选定)Copy line (empty selection) | | `Alt+ ↑ / ...

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

118. 代码模式的快捷键设置(ActionScript-IDE篇(AS3)-代码模式基础) [ 67%]

...速打开 Quick Open | | `Ctrl + Shift + N` | 新窗口/实例 New window/instance | | `Ctrl + Shift + W` | 关闭窗口/实例 Close window/instance | | `Ctrl+X` | 剪切行(空选定) Cut line (empty selection) | | `Ctrl+C` | 复制行(空选定)Copy line (empty selection) | | `Alt+ ↑ / ...

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

119. 内存释放问题 [ 66%]

...leByName(resAltlasName, className, (cn) => { let sv: any = ui.UIControl.instance.showView(cn); showCompleteFun(sv); }); } /** * 加载模块的资源 * 资源必须放在atlas下面 * @static * @param {string[]} mNames 模块的资源路径下的名称(也是模块名称) * @param {Function} onCo...

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

120. LayaAir 3D性能分析工具(TypeScript-3D基础(TS)-LayaAir3D之性能优化) [ 66%]

...PerformancePlugin.setPerformanceDataTool((Laya as any).PerformanceDataTool.instance); //开启性能分析 Laya.PerformancePlugin.enable = true; // 项目地址为外网或者内嵌在别的应用中(如微信小游戏)时,需要设置性能分析器所在机器的局域网ip // (Laya as any)....

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