private void DrawSkyGUI()
        {
            string label = "Sky";
            string id    = "sky" + instance.GetInstanceID();;

            JEditorCommon.Foldout(label, false, id, () =>
            {
                instance.SkyColor     = EditorGUILayout.ColorField("Sky Color", instance.SkyColor);
                instance.HorizonColor = EditorGUILayout.ColorField("Horizon Color", instance.HorizonColor);
                instance.GroundColor  = EditorGUILayout.ColorField("Ground Color", instance.GroundColor);
                if (instance.AllowStepEffect)
                {
                    instance.HorizonStep = EditorGUILayout.IntField("Horizon Step", instance.HorizonStep);
                }
                instance.HorizonExponent  = EditorGUILayout.FloatField("Horizon Exponent", instance.HorizonExponent);
                instance.HorizonThickness = EditorGUILayout.Slider("Horizon Thickness", instance.HorizonThickness, 0f, 1f);
            });
        }
        private void DrawSkyGUI()
        {
            string label = "Sky";
            string id    = "sky" + profile.GetInstanceID();;

            JEditorCommon.Foldout(label, false, id, () =>
            {
                profile.SkyColor     = ColorField("Sky Color", profile.SkyColor, true, true, true, nameof(profile.SkyColor));
                profile.HorizonColor = ColorField("Horizon Color", profile.HorizonColor, true, true, true, nameof(profile.HorizonColor));
                profile.GroundColor  = ColorField("Ground Color", profile.GroundColor, true, true, true, nameof(profile.GroundColor));
                if (profile.AllowStepEffect)
                {
                    profile.HorizonStep = EditorGUILayout.IntField("Horizon Step", profile.HorizonStep);
                }
                profile.HorizonExponent  = FloatField("Horizon Exponent", profile.HorizonExponent, nameof(profile.HorizonExponent));
                profile.HorizonThickness = Slider("Horizon Thickness", profile.HorizonThickness, 0f, 1f, nameof(profile.HorizonThickness));
                profile.FogSyncOption    = (JFogSyncOption)EditorGUILayout.EnumPopup("Fog Sync", profile.FogSyncOption);
                if (profile.FogSyncOption == JFogSyncOption.CustomColor)
                {
                    profile.FogColor = ColorField("Fog Color", profile.FogColor, true, true, false, nameof(profile.FogColor));
                }
            });
        }