compressLightmaps
Whether to compress the lightmap textures that the Progressive Lightmapper generates. (Editor only)
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public bool compressLightmaps { get; set; }
Remarks
When this is set to , Unity compresses the lightmap textures that the Progressive Lightmapper generates. When this is set to , Unity does not compress the lightmap textures.
truefalseCompressed lightmap textures take up less space on disk and in memory, but may introduce unwanted visual artifacts.
This setting affects lightmaps generated by the Baked Global Illumination system. It only applies to the Progressive Lightmapper.
When Unity serializes this object as a Lighting Settings Asset, this property corresponds to the Compress Lightmaps property in the Lighting Settings Asset Inspector.
LightingSettingsAdditional Resources: Lighting Settings Asset, [wiki:progressive-lightmapper|The Progressive Lightmapper]].