---
tags:
    - "Environment, Fog, Ambient, Lighting, Skybox"
---

# Render Settings Fog End Distance

[Rendering](../index.md) / [Render Settings](index.md) / **Render Settings Fog End Distance**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :green_circle: Can Write

</div>

## Description

The Fog End Distance static property of the Render Settings class

## Code

```cs
// <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 End Distance")]
    [Category("Rendering/Render Settings/Fog End Distance")]
    [Description("The Fog End Distance static property of the Render Settings class")]

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

    [Serializable]
    public class GenTypeNumber_RenderSettings_FogEndDistance : TypeNumber
    {

        public override double GetPreview(GameObject source)
        {
            return RenderSettings.fogEndDistance;
        }

        public override double Get(Args args)
        {
            return RenderSettings.fogEndDistance;
        }

        public override void Set(double value, Args args)
        {
            RenderSettings.fogEndDistance = (float) value;
        }

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

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}
```

