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

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

941. 内存优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 77%]

# 内存优化方式 ### 1、通过对象池优化内存 对象池优化是游戏开发中非常重要的优化方式,也是影响游戏性能的重要因素之一。 在游戏中有许多对象在不停的创建与移除,比如角色攻击子弹、特效的创建与移除,NPC的被消灭与...

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

942. laya.d3.resource.BaseTexture [ 77%]

...eTextureInheritanceBaseTexture laya.resource.ResourceSubclasses DataTexture2D, RenderTexture, SolidColorTexture2D, SolidColorTextureCube, Texture2D, TextureCube BaseTexture 纹理的父类,抽象类,不允许实例。 Public Properties PropertyDefined By  defaulteTexture : BaseTexture[read-on...

来源: laya_api 发布时间: 20170929

943. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 77%]

# 减少CPU使用量 ### **一、减少动态属性查找** JavaScript中任何对象都是动态的,你可以任意地添加属性。然而,在大量的属性里查找某属性可能很耗时。如果需要频繁使用某个属性值,可以使用局部变量来保存它: ```javascript priva...

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

944. 高级应用-闪光 [ 77%]

...店、LayaPlayer运行器。核心引擎LayaAir性能全球领先,支持2D、3D、VR开发,支持AS3、JavaScript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN...

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

945. laya.d3.core.HeightMap [ 77%]

...建一个 HeightMap 实例。 HeightMap  createFromImage(texture:Texture2D, minHeight:Number, maxHeight:Number):HeightMap[static] 从图片生成高度图。 HeightMap  creatFromMesh(mesh:Mesh, width:int, height:int, outCellSize:Vector2):HeightMap[static] 从网格精灵生成高度图。 Height...

来源: laya_api 发布时间: 20170929

946. laya.d3.core.HeightMap [ 77%]

...建一个 HeightMap 实例。 HeightMap  createFromImage(texture:Texture2D, minHeight:Number, maxHeight:Number):HeightMap[static] 从图片生成高度图。 HeightMap  creatFromMesh(mesh:Mesh, width:int, height:int, outCellSize:Vector2):HeightMap[static] 从网格精灵生成高度图。 Height...

来源: Laya2.0_api 发布时间: 20190513

947. [LayaAir3]时长小于1秒的动画循环播放时会停留在最后一个关键帧直到1秒 [ 77%]

...版本 3.3.0 最新覆盖版, 分析验证后发现是最近的 "fix:修正2D和3D动画,当设置clipEnd值以后event事件不正确的bug" 这个提交的改动导致的 附件 : --> TestAnim.zip 2025-08-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

948. localRotationEulerY旋转位置错误 [ 77%]

... planeMat = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/grass.png", Laya.Handler.create(this, function (tex: Laya.Texture2D): void {             planeMat.albedoTexture = tex;         }));         //设置纹理平铺和偏移    ...

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

949. [LayaAir3]资源未清理干净 [ 77%]

...r http://localhost:18090/resources/chest_bg.png (4) [6, Texture, 7, Texture2D] loader http://localhost:18090/atlas/comp/img_bg.png (4) [6, Texture, 7, Texture2D] close --------------------------------gc 6000----------------------------------- loader http://localhost:18090/resources/chest_bg.png (2) ...

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

950. 射线检测-放置物体 [ 77%]

...店、LayaPlayer运行器。核心引擎LayaAir性能全球领先,支持2D、3D、VR开发,支持AS3、JavaScript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN...

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