MeatMotion

VisualEffectMotionExtensions

Bind numbers or vectors to exposed Visual Effect Graph properties by name or ID.

Namespace
MeatMotion.Extensions
Assembly
MeatMotion

Jump to members

public static class VisualEffectMotionExtensions

Requires com.unity.visualeffectgraph

RenderingPackageExtensions.cs · L18

Members

BindToVisualEffectFloat

Choose the VisualEffectFloat property by name or integer ID. The name overload resolves Shader.PropertyToID when binding.

public static MotionHandle BindToVisualEffectFloat(this FloatMotionBuilder builder, UnityEngine.VFX.VisualEffect visualEffect, string name)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualEffect
UnityEngine.VFX.VisualEffect Target UnityEngine.VFX.VisualEffect that receives the update.
name
string Name of the target property.
Returns
MotionHandle
public static MotionHandle BindToVisualEffectFloat<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, UnityEngine.VFX.VisualEffect visualEffect, string name)
    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.
visualEffect
UnityEngine.VFX.VisualEffect Target UnityEngine.VFX.VisualEffect that receives the update.
name
string Name of the target property.
Returns
MotionHandle
public static MotionHandle BindToVisualEffectFloat(this FloatMotionBuilder builder, UnityEngine.VFX.VisualEffect visualEffect, int nameID)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualEffect
UnityEngine.VFX.VisualEffect Target UnityEngine.VFX.VisualEffect that receives the update.
nameID
int Unity integer ID for the named property.
Returns
MotionHandle
public static MotionHandle BindToVisualEffectFloat<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, UnityEngine.VFX.VisualEffect visualEffect, int nameID)
    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.
visualEffect
UnityEngine.VFX.VisualEffect Target UnityEngine.VFX.VisualEffect that receives the update.
nameID
int Unity integer ID for the named property.
Returns
MotionHandle

BindToVisualEffectInt

Choose the VisualEffectInt property by name or integer ID. The name overload resolves Shader.PropertyToID when binding.

public static MotionHandle BindToVisualEffectInt<TOptions, TAdapter>(this MotionBuilder<int, TOptions, TAdapter> builder, UnityEngine.VFX.VisualEffect visualEffect, string name)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<int, TOptions>
Parameters and return value
builder
this MotionBuilder<int, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
visualEffect
UnityEngine.VFX.VisualEffect Target UnityEngine.VFX.VisualEffect that receives the update.
name
string Name of the target property.
Returns
MotionHandle
public static MotionHandle BindToVisualEffectInt<TOptions, TAdapter>(this MotionBuilder<int, TOptions, TAdapter> builder, UnityEngine.VFX.VisualEffect visualEffect, int nameID)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<int, TOptions>
Parameters and return value
builder
this MotionBuilder<int, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
visualEffect
UnityEngine.VFX.VisualEffect Target UnityEngine.VFX.VisualEffect that receives the update.
nameID
int Unity integer ID for the named property.
Returns
MotionHandle

BindToVisualEffectVector2

Choose the VisualEffectVector2 property by name or integer ID. The name overload resolves Shader.PropertyToID when binding.

public static MotionHandle BindToVisualEffectVector2<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, UnityEngine.VFX.VisualEffect visualEffect, string name)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Vector2, TOptions>
Parameters and return value
builder
this MotionBuilder<Vector2, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
visualEffect
UnityEngine.VFX.VisualEffect Target UnityEngine.VFX.VisualEffect that receives the update.
name
string Name of the target property.
Returns
MotionHandle
public static MotionHandle BindToVisualEffectVector2<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, UnityEngine.VFX.VisualEffect visualEffect, int nameID)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Vector2, TOptions>
Parameters and return value
builder
this MotionBuilder<Vector2, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
visualEffect
UnityEngine.VFX.VisualEffect Target UnityEngine.VFX.VisualEffect that receives the update.
nameID
int Unity integer ID for the named property.
Returns
MotionHandle

BindToVisualEffectVector3

Choose the VisualEffectVector3 property by name or integer ID. The name overload resolves Shader.PropertyToID when binding.

public static MotionHandle BindToVisualEffectVector3<TOptions, TAdapter>(this MotionBuilder<Vector3, TOptions, TAdapter> builder, UnityEngine.VFX.VisualEffect visualEffect, string name)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Vector3, TOptions>
Parameters and return value
builder
this MotionBuilder<Vector3, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
visualEffect
UnityEngine.VFX.VisualEffect Target UnityEngine.VFX.VisualEffect that receives the update.
name
string Name of the target property.
Returns
MotionHandle
public static MotionHandle BindToVisualEffectVector3<TOptions, TAdapter>(this MotionBuilder<Vector3, TOptions, TAdapter> builder, UnityEngine.VFX.VisualEffect visualEffect, int nameID)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Vector3, TOptions>
Parameters and return value
builder
this MotionBuilder<Vector3, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
visualEffect
UnityEngine.VFX.VisualEffect Target UnityEngine.VFX.VisualEffect that receives the update.
nameID
int Unity integer ID for the named property.
Returns
MotionHandle

BindToVisualEffectVector4

Choose the VisualEffectVector4 property by name or integer ID. The name overload resolves Shader.PropertyToID when binding.

public static MotionHandle BindToVisualEffectVector4<TOptions, TAdapter>(this MotionBuilder<Vector4, TOptions, TAdapter> builder, UnityEngine.VFX.VisualEffect visualEffect, string name)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Vector4, TOptions>
Parameters and return value
builder
this MotionBuilder<Vector4, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
visualEffect
UnityEngine.VFX.VisualEffect Target UnityEngine.VFX.VisualEffect that receives the update.
name
string Name of the target property.
Returns
MotionHandle
public static MotionHandle BindToVisualEffectVector4<TOptions, TAdapter>(this MotionBuilder<Vector4, TOptions, TAdapter> builder, UnityEngine.VFX.VisualEffect visualEffect, int nameID)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Vector4, TOptions>
Parameters and return value
builder
this MotionBuilder<Vector4, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
visualEffect
UnityEngine.VFX.VisualEffect Target UnityEngine.VFX.VisualEffect that receives the update.
nameID
int Unity integer ID for the named property.
Returns
MotionHandle