Render Settings Fog Start Distance#
Rendering / Render Settings / Render Settings Fog Start Distance
Can Read
Can Write
Description#
The Fog Start Distance 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 Start Distance")]
[Category("Rendering/Render Settings/Fog Start Distance")]
[Description("The Fog Start 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_FogStartDistance : TypeNumber
{
public override double GetPreview(GameObject source)
{
return RenderSettings.fogStartDistance;
}
public override double Get(Args args)
{
return RenderSettings.fogStartDistance;
}
public override void Set(double value, Args args)
{
RenderSettings.fogStartDistance = (float) value;
}
public override string ToString()
{
return $"Render Settings Fog Start Distance";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}