public virtual void OnEnable()
{
this.m_Sun = this.serializedObject.FindProperty("m_Sun");
this.m_AmbientMode = this.serializedObject.FindProperty("m_AmbientMode");
this.m_AmbientSkyColor = this.serializedObject.FindProperty("m_AmbientSkyColor");
this.m_AmbientEquatorColor = this.serializedObject.FindProperty("m_AmbientEquatorColor");
this.m_AmbientGroundColor = this.serializedObject.FindProperty("m_AmbientGroundColor");
this.m_AmbientIntensity = this.serializedObject.FindProperty("m_AmbientIntensity");
this.m_ReflectionIntensity = this.serializedObject.FindProperty("m_ReflectionIntensity");
this.m_ReflectionBounces = this.serializedObject.FindProperty("m_ReflectionBounces");
this.m_SkyboxMaterial = this.serializedObject.FindProperty("m_SkyboxMaterial");
this.m_DefaultReflectionMode = this.serializedObject.FindProperty("m_DefaultReflectionMode");
this.m_DefaultReflectionResolution = this.serializedObject.FindProperty("m_DefaultReflectionResolution");
this.m_CustomReflection = this.serializedObject.FindProperty("m_CustomReflection");
this.m_lightmapSettings = new SerializedObject(LightmapEditorSettings.GetLightmapSettings());
this.m_EnvironmentLightingMode = this.m_lightmapSettings.FindProperty("m_GISettings.m_EnvironmentLightingMode");
this.m_ReflectionCompression = this.m_lightmapSettings.FindProperty("m_LightmapEditorSettings.m_ReflectionCompression");
this.m_ShowEditor = SessionState.GetBool("ShowLightingEditor", true);
this.m_ShowAmbientBakeMode.target = LightingEditor.ShowAmbientField();
}