UnityEditor.LightingEditor.OnEnable C# (CSharp) Method

OnEnable() public method

public OnEnable ( ) : void
return void
        public virtual void OnEnable()
        {
            this.m_Sun = base.serializedObject.FindProperty("m_Sun");
            this.m_AmbientMode = base.serializedObject.FindProperty("m_AmbientMode");
            this.m_AmbientSkyColor = base.serializedObject.FindProperty("m_AmbientSkyColor");
            this.m_AmbientEquatorColor = base.serializedObject.FindProperty("m_AmbientEquatorColor");
            this.m_AmbientGroundColor = base.serializedObject.FindProperty("m_AmbientGroundColor");
            this.m_AmbientIntensity = base.serializedObject.FindProperty("m_AmbientIntensity");
            this.m_ReflectionIntensity = base.serializedObject.FindProperty("m_ReflectionIntensity");
            this.m_ReflectionBounces = base.serializedObject.FindProperty("m_ReflectionBounces");
            this.m_SkyboxMaterial = base.serializedObject.FindProperty("m_SkyboxMaterial");
            this.m_DefaultReflectionMode = base.serializedObject.FindProperty("m_DefaultReflectionMode");
            this.m_DefaultReflectionResolution = base.serializedObject.FindProperty("m_DefaultReflectionResolution");
            this.m_CustomReflection = base.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 = ShowAmbientField();
        }