TransformMotionExtensions
Bind world or local position, rotation and scale on a Transform. Axis-specific setters preserve the current values on the other axes.
public static class TransformMotionExtensionsTransformMotionExtensions.cs · L6Change local X while preserving Y and Z
Add using MeatMotion;, using MeatMotion.Extensions; and using UnityEngine;. Place the code inside the target MonoBehaviour.
transform.localPosition = new Vector3(0f, 2f, 3f);
using var world = new MotionWorld();
MMotion.Create(0f, 8f, 1f).WithScheduler(world)
.BindToLocalPositionX(transform);
world.Tick(0.5);
Members
- BindToPosition
- BindToPositionX
- BindToPositionY
- BindToPositionZ
- BindToPositionXY
- BindToPositionXZ
- BindToPositionYZ
- BindToLocalPosition
- BindToLocalPositionX
- BindToLocalPositionY
- BindToLocalPositionZ
- BindToLocalPositionXY
- BindToLocalPositionXZ
- BindToLocalPositionYZ
- BindToEulerAngles
- BindToEulerAnglesX
- BindToEulerAnglesY
- BindToEulerAnglesZ
- BindToEulerAnglesXY
- BindToEulerAnglesXZ
- BindToEulerAnglesYZ
- BindToLocalEulerAngles
- BindToLocalEulerAnglesX
- BindToLocalEulerAnglesY
- BindToLocalEulerAnglesZ
- BindToLocalEulerAnglesXY
- BindToLocalEulerAnglesXZ
- BindToLocalEulerAnglesYZ
- BindToLocalScale
- BindToLocalScaleX
- BindToLocalScaleY
- BindToLocalScaleZ
- BindToLocalScaleXY
- BindToLocalScaleXZ
- BindToLocalScaleYZ
- BindToLocalScaleXYZ
- BindToRotation
- BindToLocalRotation
BindToPosition
Assign each interpolated value to Transform.position in that Unity property's coordinate space.
public static MotionHandle BindToPosition<TOptions, TAdapter>(this MotionBuilder<Vector3, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToPositionX
Update the X components of Transform.position, preserving the other components at write time.
public static MotionHandle BindToPositionX<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToPositionX(this FloatMotionBuilder builder, Transform transform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToPositionY
Update the Y components of Transform.position, preserving the other components at write time.
public static MotionHandle BindToPositionY<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToPositionY(this FloatMotionBuilder builder, Transform transform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToPositionZ
Update the Z components of Transform.position, preserving the other components at write time.
public static MotionHandle BindToPositionZ<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToPositionZ(this FloatMotionBuilder builder, Transform transform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToPositionXY
Update the XY components of Transform.position, preserving the other components at write time.
public static MotionHandle BindToPositionXY<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToPositionXZ
Update the XZ components of Transform.position, preserving the other components at write time.
public static MotionHandle BindToPositionXZ<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToPositionYZ
Update the YZ components of Transform.position, preserving the other components at write time.
public static MotionHandle BindToPositionYZ<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalPosition
Assign each interpolated value to Transform.localPosition in that Unity property's coordinate space.
public static MotionHandle BindToLocalPosition<TOptions, TAdapter>(this MotionBuilder<Vector3, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalPositionX
Update the X components of Transform.localPosition, preserving the other components at write time.
public static MotionHandle BindToLocalPositionX<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToLocalPositionX(this FloatMotionBuilder builder, Transform transform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalPositionY
Update the Y components of Transform.localPosition, preserving the other components at write time.
public static MotionHandle BindToLocalPositionY<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToLocalPositionY(this FloatMotionBuilder builder, Transform transform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalPositionZ
Update the Z components of Transform.localPosition, preserving the other components at write time.
public static MotionHandle BindToLocalPositionZ<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToLocalPositionZ(this FloatMotionBuilder builder, Transform transform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalPositionXY
Update the XY components of Transform.localPosition, preserving the other components at write time.
public static MotionHandle BindToLocalPositionXY<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalPositionXZ
Update the XZ components of Transform.localPosition, preserving the other components at write time.
public static MotionHandle BindToLocalPositionXZ<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalPositionYZ
Update the YZ components of Transform.localPosition, preserving the other components at write time.
public static MotionHandle BindToLocalPositionYZ<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToEulerAngles
Assign each interpolated value to Transform.eulerAngles in that Unity property's coordinate space.
public static MotionHandle BindToEulerAngles<TOptions, TAdapter>(this MotionBuilder<Vector3, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToEulerAnglesX
Update the X components of Transform.eulerAngles, preserving the other components at write time.
public static MotionHandle BindToEulerAnglesX<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToEulerAnglesX(this FloatMotionBuilder builder, Transform transform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToEulerAnglesY
Update the Y components of Transform.eulerAngles, preserving the other components at write time.
public static MotionHandle BindToEulerAnglesY<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToEulerAnglesY(this FloatMotionBuilder builder, Transform transform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToEulerAnglesZ
Update the Z components of Transform.eulerAngles, preserving the other components at write time.
public static MotionHandle BindToEulerAnglesZ<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToEulerAnglesZ(this FloatMotionBuilder builder, Transform transform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToEulerAnglesXY
Update the XY components of Transform.eulerAngles, preserving the other components at write time.
public static MotionHandle BindToEulerAnglesXY<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToEulerAnglesXZ
Update the XZ components of Transform.eulerAngles, preserving the other components at write time.
public static MotionHandle BindToEulerAnglesXZ<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToEulerAnglesYZ
Update the YZ components of Transform.eulerAngles, preserving the other components at write time.
public static MotionHandle BindToEulerAnglesYZ<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalEulerAngles
Assign each interpolated value to Transform.localEulerAngles in that Unity property's coordinate space.
public static MotionHandle BindToLocalEulerAngles<TOptions, TAdapter>(this MotionBuilder<Vector3, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalEulerAnglesX
Update the X components of Transform.localEulerAngles, preserving the other components at write time.
public static MotionHandle BindToLocalEulerAnglesX<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToLocalEulerAnglesX(this FloatMotionBuilder builder, Transform transform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalEulerAnglesY
Update the Y components of Transform.localEulerAngles, preserving the other components at write time.
public static MotionHandle BindToLocalEulerAnglesY<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToLocalEulerAnglesY(this FloatMotionBuilder builder, Transform transform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalEulerAnglesZ
Update the Z components of Transform.localEulerAngles, preserving the other components at write time.
public static MotionHandle BindToLocalEulerAnglesZ<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToLocalEulerAnglesZ(this FloatMotionBuilder builder, Transform transform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalEulerAnglesXY
Update the XY components of Transform.localEulerAngles, preserving the other components at write time.
public static MotionHandle BindToLocalEulerAnglesXY<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalEulerAnglesXZ
Update the XZ components of Transform.localEulerAngles, preserving the other components at write time.
public static MotionHandle BindToLocalEulerAnglesXZ<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalEulerAnglesYZ
Update the YZ components of Transform.localEulerAngles, preserving the other components at write time.
public static MotionHandle BindToLocalEulerAnglesYZ<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalScale
Assign each interpolated value to Transform.localScale in that Unity property's coordinate space.
public static MotionHandle BindToLocalScale<TOptions, TAdapter>(this MotionBuilder<Vector3, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalScaleX
Update the X components of Transform.localScale, preserving the other components at write time.
public static MotionHandle BindToLocalScaleX<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToLocalScaleX(this FloatMotionBuilder builder, Transform transform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalScaleY
Update the Y components of Transform.localScale, preserving the other components at write time.
public static MotionHandle BindToLocalScaleY<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToLocalScaleY(this FloatMotionBuilder builder, Transform transform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalScaleZ
Update the Z components of Transform.localScale, preserving the other components at write time.
public static MotionHandle BindToLocalScaleZ<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToLocalScaleZ(this FloatMotionBuilder builder, Transform transform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalScaleXY
Update the XY components of Transform.localScale, preserving the other components at write time.
public static MotionHandle BindToLocalScaleXY<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalScaleXZ
Update the XZ components of Transform.localScale, preserving the other components at write time.
public static MotionHandle BindToLocalScaleXZ<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalScaleYZ
Update the YZ components of Transform.localScale, preserving the other components at write time.
public static MotionHandle BindToLocalScaleYZ<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalScaleXYZ
Assign the same float to all three components of Transform.localScale for uniform scaling.
public static MotionHandle BindToLocalScaleXYZ<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Transform transform)
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.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToLocalScaleXYZ(this FloatMotionBuilder builder, Transform transform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToRotation
Assign each interpolated value to Transform.rotation in that Unity property's coordinate space.
public static MotionHandle BindToRotation<TOptions, TAdapter>(this MotionBuilder<Quaternion, TOptions, TAdapter> builder, Transform transform)
where TOptions : unmanaged, IMotionOptions
where TAdapter : unmanaged, IMotionAdapter<Quaternion, TOptions>Parameters and return value
builderthis MotionBuilder<Quaternion, TOptions, TAdapter>Configured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
BindToLocalRotation
Assign each interpolated value to Transform.localRotation in that Unity property's coordinate space.
public static MotionHandle BindToLocalRotation<TOptions, TAdapter>(this MotionBuilder<Quaternion, TOptions, TAdapter> builder, Transform transform)
where TOptions : unmanaged, IMotionOptions
where TAdapter : unmanaged, IMotionAdapter<Quaternion, TOptions>Parameters and return value
builderthis MotionBuilder<Quaternion, TOptions, TAdapter>Configured builder, passed as the receiver for extension calls.transformTransformTarget Transform that receives the update.- Returns
MotionHandle
MeatMotion