大约有 2,231 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0103 秒)
Laya_社区(1808) Laya3.0_api(142) Laya2.0_api(88) Laya2.0_文档(77) laya_api(74) Laya3.0_文档(41) Laya2.0_示例(1)
...rce.destoryedImmediately Defined in laya/resource/Resource.ts:104 是否在引用计数为0的时候立马删除他 Optional lock lock: boolean Inherited from Resource.lock Defined in laya/resource/Resource.ts:95 是否加锁,如果true为不能使用自动释放机制。 Optional name name: strin...
来源: Laya3.0_api 发布时间: 20231102
...以节省内存开销,建议设置为true进行回收,但如果手动引用了数组,不建议回收 Returns void clipRect clipRect(x: number, y: number, width: number, height: number): ClipRectCmd Defined in laya/display/Graphics.ts:304 设置剪裁区域,超出剪裁区域的坐标不显...
来源: Laya3.0_api 发布时间: 20231115
...allfile.txt为版本信息) 3.在native下,为了避免index.html中引用的js入口文件过大,我采取了分模块编译的方式,即是将引擎和1个入口类做出基础js,其他代码编译成模块js,这样会有两个问题,就是这个编译出来的js比较大,在执...
来源: Laya_社区 发布时间: 20180627
...以节省内存开销,建议设置为true进行回收,但如果手动引用了数组,不建议回收 Returns void clipRect clipRect(x: number, y: number, width: number, height: number): ClipRectCmd Inherited from Graphics.clipRect Defined in laya/display/Graphics.ts:304 设置剪裁区域,...
来源: Laya3.0_api 发布时间: 20231115
...新增了两个模块 所以别忘记 上一节我们说到的 要在页面引用响应的JS哦 我们刷新页面看看 我们会看到地板从屏幕右边慢慢的跑出来了 ~~~ 既然是跑酷 一个地板肯定是不够的~~ 我们来增加多一点地板 首先我们想一下 如何增加...
来源: Laya_社区 发布时间: 20160728
...。destroy对象默认会把自己从父节点移除,并且清理自身引用关系,等待js自动垃圾回收机制回收。destroy后不能再使用。 destroy时会移除自身的事情监听,自身的timer监听,移除子对象及从父节点移除自己。 Parameters Default value destr...
来源: Laya3.0_api 发布时间: 20231115
... from Text.stage Defined in laya/display/Sprite.ts:1656 对舞台 stage 的引用。 Returns Stage staticCache get staticCache(): boolean set staticCache(value: boolean): void Inherited from Text.staticCache Defined in laya/display/Sprite.ts:389 设置cacheAs为非空时此值才有效,staticCache...
来源: Laya3.0_api 发布时间: 20231115
... from Text.stage Defined in laya/display/Sprite.ts:1656 对舞台 stage 的引用。 Returns Stage staticCache get staticCache(): boolean set staticCache(value: boolean): void Inherited from Text.staticCache Defined in laya/display/Sprite.ts:389 设置cacheAs为非空时此值才有效,staticCache...
来源: Laya3.0_api 发布时间: 20231115
...以节省内存开销,建议设置为true进行回收,但如果手动引用了数组,不建议回收 Returns void clipRect clipRect(x: number, y: number, width: number, height: number): ClipRectCmd Inherited from Graphics.clipRect Defined in laya/display/Graphics.ts:304 设置剪裁区域,...
来源: Laya3.0_api 发布时间: 20231115
...,开发者可结合代码的注释,理解每部分代码的用途: //引用各个模块 const style = require("./render/style.js"); const tplFn = require("./render/tplfn.js"); const Layout = require("./engine.js").default; //获取开放数据域画布 let sharedCanvas = wx.getSharedCanvas(); ...
来源: Laya3.0_文档 发布时间: 20251010