# VisualEffectMotionExtensions

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

Namespace: MeatMotion.Extensions

Assembly: MeatMotion

```csharp
public static class VisualEffectMotionExtensions
```

Requires com.unity.visualeffectgraph

[Runtime/Bindings/Rendering/RenderingPackageExtensions.cs · L18](../../../source/Runtime/Bindings/Rendering/RenderingPackageExtensions.cs.html#L18)

## BindToVisualEffectFloat

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

```csharp
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`

[Runtime/Bindings/Rendering/RenderingPackageExtensions.cs · L20](../../../source/Runtime/Bindings/Rendering/RenderingPackageExtensions.cs.html#L20)

```csharp
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`

[Runtime/Bindings/Rendering/RenderingPackageExtensions.cs · L23](../../../source/Runtime/Bindings/Rendering/RenderingPackageExtensions.cs.html#L23)

```csharp
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`

[Runtime/Bindings/Rendering/RenderingPackageExtensions.cs · L27](../../../source/Runtime/Bindings/Rendering/RenderingPackageExtensions.cs.html#L27)

```csharp
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`

[Runtime/Bindings/Rendering/RenderingPackageExtensions.cs · L30](../../../source/Runtime/Bindings/Rendering/RenderingPackageExtensions.cs.html#L30)

## BindToVisualEffectInt

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

```csharp
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`

[Runtime/Bindings/Rendering/RenderingPackageExtensions.cs · L35](../../../source/Runtime/Bindings/Rendering/RenderingPackageExtensions.cs.html#L35)

```csharp
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`

[Runtime/Bindings/Rendering/RenderingPackageExtensions.cs · L39](../../../source/Runtime/Bindings/Rendering/RenderingPackageExtensions.cs.html#L39)

## BindToVisualEffectVector2

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

```csharp
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`

[Runtime/Bindings/Rendering/RenderingPackageExtensions.cs · L44](../../../source/Runtime/Bindings/Rendering/RenderingPackageExtensions.cs.html#L44)

```csharp
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`

[Runtime/Bindings/Rendering/RenderingPackageExtensions.cs · L48](../../../source/Runtime/Bindings/Rendering/RenderingPackageExtensions.cs.html#L48)

## BindToVisualEffectVector3

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

```csharp
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`

[Runtime/Bindings/Rendering/RenderingPackageExtensions.cs · L53](../../../source/Runtime/Bindings/Rendering/RenderingPackageExtensions.cs.html#L53)

```csharp
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`

[Runtime/Bindings/Rendering/RenderingPackageExtensions.cs · L57](../../../source/Runtime/Bindings/Rendering/RenderingPackageExtensions.cs.html#L57)

## BindToVisualEffectVector4

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

```csharp
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`

[Runtime/Bindings/Rendering/RenderingPackageExtensions.cs · L62](../../../source/Runtime/Bindings/Rendering/RenderingPackageExtensions.cs.html#L62)

```csharp
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`

[Runtime/Bindings/Rendering/RenderingPackageExtensions.cs · L66](../../../source/Runtime/Bindings/Rendering/RenderingPackageExtensions.cs.html#L66)
