diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md
index fd32fbcb022..a2201f1ee04 100644
--- a/com.unity.render-pipelines.high-definition/CHANGELOG.md
+++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed
- Shadowmask and realtime reflection probe property are hide in Quality settings
+- Made the StaticLightingSky class public so that users can change it by script for baking purpose.
## [8.1.0] - 2020-04-21
diff --git a/com.unity.render-pipelines.high-definition/Runtime/Sky/StaticLightingSky.cs b/com.unity.render-pipelines.high-definition/Runtime/Sky/StaticLightingSky.cs
index d3aa6bb1293..d2cb6061cc2 100644
--- a/com.unity.render-pipelines.high-definition/Runtime/Sky/StaticLightingSky.cs
+++ b/com.unity.render-pipelines.high-definition/Runtime/Sky/StaticLightingSky.cs
@@ -4,10 +4,13 @@
namespace UnityEngine.Rendering.HighDefinition
{
+ ///
+ /// Class controlling which sky is used for static and baked lighting.
+ ///
[HelpURL(Documentation.baseURL + Documentation.version + Documentation.subURL + "Static-Lighting-Sky" + Documentation.endURL)]
[ExecuteAlways]
[AddComponentMenu("")] // Hide this object from the Add Component menu
- class StaticLightingSky : MonoBehaviour
+ public class StaticLightingSky : MonoBehaviour
{
[SerializeField]
VolumeProfile m_Profile;
@@ -16,12 +19,10 @@ class StaticLightingSky : MonoBehaviour
int m_LastComputedHash;
bool m_NeedUpdateStaticLightingSky;
- [NonSerialized]
- public SkySettings m_SkySettings; // This one contain only property values from overridden properties in the original profile component
- [NonSerialized]
- public SkySettings m_SkySettingsFromProfile;
+ SkySettings m_SkySettings; // This one contain only property values from overridden properties in the original profile component
+ SkySettings m_SkySettingsFromProfile;
- public SkySettings skySettings
+ internal SkySettings skySettings
{
get
{
@@ -42,7 +43,9 @@ public SkySettings skySettings
List m_VolumeSkyList = new List();
-
+ ///
+ /// Volume profile where the sky settings used for static lighting will be fetched.
+ ///
public VolumeProfile profile
{
get
@@ -69,6 +72,10 @@ public VolumeProfile profile
}
}
+ ///
+ /// Unique ID of the sky used for static lighting.
+ /// The unique ID should be for a sky that is present in the profile. See SkySettings.GetUniqueID to get the ID per sky type.
+ ///
public int staticLightingSkyUniqueID
{
get