Configures how Unity bakes lighting and can be assigned to a LightingSettings instance or asset.
Note that Unity's built-in Lightmap Parameters Assets are read-only.
Additional resources: LightmapParameters.SetLightmapParametersForLightingSettings.
| Property | Description |
|---|---|
| antiAliasingSamples | The kernel width the lightmapper uses when sampling a lightmap texel. |
| AOAntiAliasingSamples | The maximum number of times to supersample a texel to reduce aliasing in AO. |
| AOQuality | The number of rays to cast for computing ambient occlusion. |
| backFaceTolerance | The percentage of rays shot from a ray origin that must hit front faces to be considered usable. |
| bakedLightmapTag | BakedLightmapTag is an integer that affects the assignment to baked lightmaps. Objects with different values for bakedLightmapTag are guaranteed to not be assigned to the same lightmap even if the other baking parameters are the same. |
| blurRadius | The radius (in texels) of the post-processing filter that blurs baked direct lighting. |
| directLightQuality | The number of rays used for lights with an area. Allows for accurate soft shadowing. |
| limitLightmapCount | If enabled, objects sharing the same lightmap parameters will be packed into LightmapParameters.maxLightmapCount lightmaps. |
| maxLightmapCount | The maximum number of lightmaps created for objects sharing the same lightmap parameters. This property is ignored if LightmapParameters.limitLightmapCount is false. |
| pushoff | The distance to offset the ray origin from the geometry when performing ray tracing, in modelling units. Unity applies the offset to all baked lighting: direct lighting, indirect lighting, environment lighting and ambient occlusion. |
| resolution | The texel resolution per meter used for real-time lightmaps. This value is multiplied by LightingSettings.indirectResolution. |
| Method | Description |
|---|---|
| AssignToLightingSettings | Assignes itself to a LightingSettings instance or asset. |
| Method | Description |
|---|---|
| GetLightmapParametersForLightingSettings | Returns the assigned LightmapParameters for the specified LightingSettings. |
| SetLightmapParametersForLightingSettings | Sets the LightmapParameters for the specified LightingSettings. |
| Property | Description |
|---|---|
| hideFlags | Controls whether the object is hidden, saved with the scene, and editable by the user. |
| name | The name of the object. |
| Method | Description |
|---|---|
| GetEntityId | Gets the EntityId of the object. |
| GetHashCode | Returns the hash code for the object. |
| ToString | Returns the name of the object. |
| Method | Description |
|---|---|
| Destroy | Removes a GameObject, component, or asset. |
| DestroyImmediate | Destroys the specified object immediately. Use with caution and in Edit mode only. |
| DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
| FindAnyObjectByType | Retrieves any active loaded object of Type T. |
| FindObjectsByType | Retrieves a list of all loaded objects of Type type. |
| Instantiate | Clones the object original and returns the clone. |
| InstantiateAsync | Captures a snapshot of the original object that's related to another GameObject and obtains an AsyncInstantiateOperation instance of the resulting objects. |
| Operator | Description |
|---|---|
| bool | Determines whether the object exists. |
| operator != | Compares if two objects refer to a different object. |
| operator == | Compares two object references to see if they refer to the same object. |