MeatMotion

VolumeMotionExtensions

Write a float tween's value to a render pipeline Volume's weight.

Namespace
MeatMotion.Extensions
Assembly
MeatMotion

Jump to members

public static class VolumeMotionExtensions

Requires com.unity.render-pipelines.core

RenderingPackageExtensions.cs · L6

Members

BindToWeight

Assign each sampled float to the render pipeline Volume.weight.

public static MotionHandle BindToWeight(this FloatMotionBuilder builder, UnityEngine.Rendering.Volume volume)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
volume
UnityEngine.Rendering.Volume Target UnityEngine.Rendering.Volume that receives the update.
Returns
MotionHandle
public static MotionHandle BindToWeight<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, UnityEngine.Rendering.Volume volume)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<float, TOptions>
Parameters and return value
builder
this MotionBuilder<float, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
volume
UnityEngine.Rendering.Volume Target UnityEngine.Rendering.Volume that receives the update.
Returns
MotionHandle