namespace UnityEngine.Rendering.HighDefinition { /// /// Additional component used to store settings for HDRP's reflection probes. /// [HelpURL(Documentation.baseURL + Documentation.version + Documentation.subURL + "Reflection-Probe" + Documentation.endURL)] [AddComponentMenu("")] // Hide in menu [RequireComponent(typeof(ReflectionProbe))] public sealed partial class HDAdditionalReflectionData : HDProbe { void Awake() { type = ProbeSettings.ProbeType.ReflectionProbe; k_ReflectionProbeMigration.Migrate(this); } } /// /// Utilities for reflection probes. /// public static class HDAdditionalReflectionDataExtensions { /// /// Requests that Unity renders the passed in Reflection Probe during the next update. /// /// /// If you call this method for a Reflection Probe using mode, Unity renders the probe the next time the probe influences a Camera rendering. /// /// If the Reflection Probe doesn't have an attached component, calling this function has no effect. /// /// Note: If any part of a Camera's frustum intersects a Reflection Probe's influence volume, the Reflection Probe influences the Camera. /// /// The Reflection Probe to request a render for. public static void RequestRenderNextUpdate(this ReflectionProbe probe) { var add = probe.GetComponent(); if (add != null && !add.Equals(null)) add.RequestRenderNextUpdate(); } } }