大约有 551 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)
...这个工程就是AS的原生的工程即可,LayaAir的类库暂时可以忽略,项目的启动类这里设置为Main.as ;然后新建一个`require.as`。 require.as 代码如下: ```java package { /*[IF-FLASH-BEGIN]*/ public class require { public function require(path:String) { } } /*[IF-FL...
来源: Laya2.0_文档 发布时间: 20210715
... string): boolean { /** * 销毁当前没有被使用的资源,该函数会忽略lock=true的资源。 */ static gc(): void { Resource.destroyUnusedResources(); } 代码使用如下: Laya.Scene.destroy("scene.ls"); Laya.Scene.gc(); Copyright ©Layabox 2025 all right reserved,powered by LayaAir E...
来源: Laya3.0_文档 发布时间: 20251010
...ue,则 1)getRes仍然可以返回这个资源; 2)下次加载时会忽略这个缓存而去重新加载。。 Returns boolean Inherited from Resource.obsolute Defined in laya/resource/Resource.ts:143 如果设置一个已缓存的资源obsolute为true,则 1)getRes仍然可以返回这个...
来源: Laya3.0_api 发布时间: 20231102
...呈现的画面仍受限于这个中心区域,其他部分将被裁剪或忽略。 因此,对于需要全屏适配的游戏,仅将画布设置为全屏还不够,还需将舞台尺寸同步扩展到与画布相同,确保画面内容完整显示。 舞台大小的设置依赖于项目的设...
来源: Laya3.0_文档 发布时间: 20251010
...-12-26 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 报错可以忽略,闪退这个问题知道也一直在查,目前解决不了,疑难杂症,先搁置吧。 2019-12-27 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 N...
来源: Laya_社区 发布时间: 20191226
...ircular dependency:"); console.log(waring); } }, treeshake: false, //建议忽略 plugins: [ typescript({ tsconfig:workSpaceDir + "/tsconfig.json", check: true, //Set to false to avoid doing any diagnostic checks on the code tsconfigOverride:{compilerOptions:{removeComments: true}}, include:/.*.ts/,...
来源: Laya_社区 发布时间: 20200918
...2.2 2D相机的特有属性 2D相机的特有属性如下: 属性 功能 忽略旋转(ignoreRotation) 启用此属性后,2D相机的旋转值始终为0。 设为主相机(isMain) 启用此属性后,2D相机才会生效。 左边界(limit_Left) 通过相机节点控制相机视窗向左移动...
来源: Laya3.0_文档 发布时间: 20251010
...般需要勾选“允许使用压缩纹理格式”,如果不勾选,则忽略所有图片对于压缩格式的设置。 纹理源文件:可以不勾选“始终包含纹理源文件”,如果勾选,则即使图片使用了压缩格式,仍然把源文件(png/jpg)打包。目的是遇到...
来源: Laya3.0_文档 发布时间: 20251010
...a/resource/Resource.ts:60 销毁当前没有被使用的资源,该函数会忽略lock=true的资源。 Returns void Globals "laya/resource/HierarchyResource" Prefab constructor _id destroyedImmediately lock name url uuid version DEBUG cpuMemory deps destroyed gpuMemory id obsolute referenceCount cpu...
来源: Laya3.0_api 发布时间: 20231115
...ue,则 1)getRes仍然可以返回这个资源; 2)下次加载时会忽略这个缓存而去重新加载。。 Returns boolean Inherited from Resource.obsolute Defined in laya/resource/Resource.ts:151 如果设置一个已缓存的资源obsolute为true,则 1)getRes仍然可以返回这个...
来源: Laya3.0_api 发布时间: 20231115