# Reflection Probe Exposure Value

[Rendering](../index.md) / [Reflection Probe](index.md) / **Reflection Probe Exposure Value**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :green_circle: Can Write

</div>

## Description

The Exposure Value property of the Reflection Probe component

## 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;
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;
    }
}
```

