Set Lightmap Settings
Set a mesh's lightmap coordinate index and resolution, through the accessors rather than the fields, which have been deprecated for direct access since 4.27. REFUSES an index that points past the mesh's UV channels, because that is the exact fault hf_audit_uvs reports and there would be no warning until lighting was built.
hf_set_lightmap_settingsWriteArguments
| Name | Type | Description |
|---|---|---|
meshreq | string | Static Mesh asset path. |
force | boolean = false | Edit even when the asset cannot currently be saved - for example when revision control is configured but disconnected. The change will be made in memory and WILL BE LOST unless the underlying problem is fixed before saving. Only pass this if you intend to discard the work or fix the connection first. |
lightmap_index | integer | UV channel the lightmap uses. Must be a channel the mesh actually has. |
lightmap_resolution | integer | Lightmap edge in pixels. Cost is the SQUARE of this, so 512 is four times 256. |
Related tools
Nearby in Mesh UVs and lightmaps: