VisualEffectMotionExtensions
Bind numbers or vectors to exposed Visual Effect Graph properties by name or ID.
public static class VisualEffectMotionExtensionsRequires com.unity.visualeffectgraph
Members
- BindToVisualEffectFloat
- BindToVisualEffectInt
- BindToVisualEffectVector2
- BindToVisualEffectVector3
- BindToVisualEffectVector4
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
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.visualEffectUnityEngine.VFX.VisualEffectTarget UnityEngine.VFX.VisualEffect that receives the update.namestringName 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
builderthis MotionBuilder<float, TOptions, TAdapter>Configured builder, passed as the receiver for extension calls.visualEffectUnityEngine.VFX.VisualEffectTarget UnityEngine.VFX.VisualEffect that receives the update.namestringName of the target property.- Returns
MotionHandle
public static MotionHandle BindToVisualEffectFloat(this FloatMotionBuilder builder, UnityEngine.VFX.VisualEffect visualEffect, int nameID)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.visualEffectUnityEngine.VFX.VisualEffectTarget UnityEngine.VFX.VisualEffect that receives the update.nameIDintUnity 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
builderthis MotionBuilder<float, TOptions, TAdapter>Configured builder, passed as the receiver for extension calls.visualEffectUnityEngine.VFX.VisualEffectTarget UnityEngine.VFX.VisualEffect that receives the update.nameIDintUnity 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
builderthis MotionBuilder<int, TOptions, TAdapter>Configured builder, passed as the receiver for extension calls.visualEffectUnityEngine.VFX.VisualEffectTarget UnityEngine.VFX.VisualEffect that receives the update.namestringName 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
builderthis MotionBuilder<int, TOptions, TAdapter>Configured builder, passed as the receiver for extension calls.visualEffectUnityEngine.VFX.VisualEffectTarget UnityEngine.VFX.VisualEffect that receives the update.nameIDintUnity 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
builderthis MotionBuilder<Vector2, TOptions, TAdapter>Configured builder, passed as the receiver for extension calls.visualEffectUnityEngine.VFX.VisualEffectTarget UnityEngine.VFX.VisualEffect that receives the update.namestringName 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
builderthis MotionBuilder<Vector2, TOptions, TAdapter>Configured builder, passed as the receiver for extension calls.visualEffectUnityEngine.VFX.VisualEffectTarget UnityEngine.VFX.VisualEffect that receives the update.nameIDintUnity 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
builderthis MotionBuilder<Vector3, TOptions, TAdapter>Configured builder, passed as the receiver for extension calls.visualEffectUnityEngine.VFX.VisualEffectTarget UnityEngine.VFX.VisualEffect that receives the update.namestringName 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
builderthis MotionBuilder<Vector3, TOptions, TAdapter>Configured builder, passed as the receiver for extension calls.visualEffectUnityEngine.VFX.VisualEffectTarget UnityEngine.VFX.VisualEffect that receives the update.nameIDintUnity 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
builderthis MotionBuilder<Vector4, TOptions, TAdapter>Configured builder, passed as the receiver for extension calls.visualEffectUnityEngine.VFX.VisualEffectTarget UnityEngine.VFX.VisualEffect that receives the update.namestringName 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
builderthis MotionBuilder<Vector4, TOptions, TAdapter>Configured builder, passed as the receiver for extension calls.visualEffectUnityEngine.VFX.VisualEffectTarget UnityEngine.VFX.VisualEffect that receives the update.nameIDintUnity integer ID for the named property.- Returns
MotionHandle
MeatMotion