#if LITMOTION_SUPPORT_RENDER_PIPELINES using UnityEngine.Rendering; namespace LitMotion.Extensions { /// /// Provides binding extension methods for Volume. /// public static class LitMotionVolumeExtensions { /// /// Create a motion data and bind it to Volume.weight /// /// The type of special parameters given to the motion data /// The type of adapter that support value animation /// This builder /// Target component /// Handle of the created motion data. public static MotionHandle BindToWeight(this MotionBuilder builder, Volume volume) where TOptions : unmanaged, IMotionOptions where TAdapter : unmanaged, IMotionAdapter { Error.IsNull(volume); return builder.Bind(volume, static (x, volume) => volume.weight = x); } } } #endif