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

Reflection Probe Exposure Value#

Rendering / Reflection Probe / Reflection Probe Exposure Value

  • Can Read

  • Can Write

Description#

The Exposure Value property of the Reflection Probe component

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;
using UnityEngine.Rendering;

namespace VisualScript.Runtime
{
    [Get]
    [Set]

    [Title("Reflection Probe Exposure Value")]
    [Category("Rendering/Reflection Probe/Exposure Value")]
    [Description("The Exposure Value property of the Reflection Probe component")]

    [Image(typeof(IconReflectionProbe), ColorTheme.Type.Blue)]

    [Serializable]
    public class GenTypeNumber_ReflectionProbe_ExposureValue : TypeNumber
    {
        [SerializeField] private GetGameObject m_ReflectionProbe = new GetGameObject(
            new GenTypeGameObject_ReflectionProbe()
        );

        public override double GetPreview(GameObject source)
        {
            GameObject instance = this.m_ReflectionProbe.GetPreview(source);
            if (instance == null) return default;

            ReflectionProbe component = instance.GetComponent<ReflectionProbe>();
            return component != null ? component.exposureValue : default;
        }

        public override double Get(Args args)
        {
            ReflectionProbe instance = this.m_ReflectionProbe.Get<ReflectionProbe>(args);
            return instance != null
                ? instance.exposureValue
                : default;
        }

        public override void Set(double value, Args args)
        {
            ReflectionProbe component = this.m_ReflectionProbe.Get<ReflectionProbe>(args);
            if (component != null) component.exposureValue = (float) value;
        }

        public override string ToString()
        {
            return $"{this.m_ReflectionProbe} Exposure Value";
        }

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