Skip to content
Jigwright
HullForge docs

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_settingsWrite

Arguments

NameTypeDescription
meshreqstringStatic Mesh asset path.
forceboolean
= 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_indexintegerUV channel the lightmap uses. Must be a channel the mesh actually has.
lightmap_resolutionintegerLightmap edge in pixels. Cost is the SQUARE of this, so 512 is four times 256.

Nearby in Mesh UVs and lightmaps: