大约有 349 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
Laya_社区(131) Laya2.0_文档(61) Laya3.0_文档(60) Laya3.0_api(53) Laya2.0_api(27) laya_api(15) Laya_示例(2)
...换比率 pixelRatio 长度单位转换比率 (pixelRatio)用来定义渲染像素(px)与 2D 物理世界长度单位(Box2D 的“米”)之间的换算比例。默认值为 50,含义是:物理世界 1 个长度单位 ≈ 渲染 50 像素。从开发者视角,你在场景里看到...
来源: Laya3.0_文档 发布时间: 20260122
...aterial.renderQueue Defined in laya/d3/core/material/Material.ts:100 所属渲染队列. url url: string Inherited from Resource.url Defined in laya/resource/Resource.ts:107 获取资源的URL地址。 uuid uuid: string Inherited from Resource.uuid Defined in laya/resource/Resource.ts:109 获取资...
来源: Laya3.0_api 发布时间: 20231115
...不经常变化的“复杂内容”缓存为静态图像,能极大提高渲染性能。cacheAs有"none","normal"和"bitmap"三个值可选。 默认为"none",不做任何缓存。 当值为"normal"时,canvas模式下进行画布缓存,webgl模式下进行命令缓存。 当值为"bitmap"...
来源: Laya3.0_api 发布时间: 20231115
...种开发语言、LayaAirIDE让项目开发更高效。(function() { // 项渲染器 var Box = Laya.Box; var Label = Laya.Label; function ListItemRender() { var label = null; ListItemRender.__super.call(this); this.size(100, 20); label = new Label(); label.fontSize = 12; label.color = "#FFFFFF"; thi...
来源: Laya_示例 发布时间: 20260303
...ed from Component.onPostRender Defined in laya/components/Component.ts:307 渲染之后执行 Returns void Optional onPreRender onPreRender(): void Inherited from Component.onPreRender Defined in laya/components/Component.ts:302 渲染之前执行 Returns void Optional onReset onReset(): void Inheri...
来源: Laya3.0_api 发布时间: 20231102
...ts:401 销毁Texture使用的图片资源,保留texture壳,如果下次渲染的时候,发现texture使用的图片资源不存在,则会自动恢复 相比clearRes,clearTextureRes只是清理texture里面使用的图片资源,并不销毁texture,再次使用到的时候会自动恢复...
来源: Laya3.0_api 发布时间: 20231102
...ed from Component.onPostRender Defined in laya/components/Component.ts:307 渲染之后执行 Returns void Optional onPreRender onPreRender(): void Inherited from Component.onPreRender Defined in laya/components/Component.ts:302 渲染之前执行 Returns void Optional onReset onReset(): void Inheri...
来源: Laya3.0_api 发布时间: 20231115
...ts:818 销毁Texture使用的图片资源,保留texture壳,如果下次渲染的时候,发现texture使用的图片资源不存在,则会自动恢复 相比clearRes,clearTextureRes只是清理texture里面使用的图片资源,并不销毁texture,再次使用到的时候会自动恢复...
来源: Laya3.0_api 发布时间: 20231115
... * 手动刷新的目的是,保持层级的宽和高保持最小,加快渲染 */ public updateGridPos(): void { var tSprite: GridSprite; for (var i: number = 0; i < this._gridSpriteArray.length; i++) { ...
来源: Laya_社区 发布时间: 20161109