Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Render Settings Fog#

Rendering / Render Settings / Render Settings Fog

  • Can Read

  • Can Write

Description#

The Fog static property of the Render Settings class

Code#

// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]
    [Set]

    [Title("Render Settings Fog")]
    [Category("Rendering/Render Settings/Fog")]
    [Description("The Fog static property of the Render Settings class")]

    [Image(typeof(IconPicture), ColorTheme.Type.TextLight, typeof(BadgeSettings))]
    [Keywords("Environment, Fog, Ambient, Lighting, Skybox")]

    [Serializable]
    public class GenTypeBool_RenderSettings_Fog : TypeBool
    {

        public override bool GetPreview(GameObject source)
        {
            return RenderSettings.fog;
        }

        public override bool Get(Args args)
        {
            return RenderSettings.fog;
        }

        public override void Set(bool value, Args args)
        {
            RenderSettings.fog = (bool) value;
        }

        public override string ToString()
        {
            return $"Render Settings Fog";
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.