RectTransformMotionExtensions
Bind a RectTransform's anchors, pivot, size delta or anchored position.
public static partial class RectTransformMotionExtensionsRequires com.unity.ugui
Members
- BindToAnchoredPosition
- BindToAnchoredPositionX
- BindToAnchoredPositionY
- BindToAnchoredPosition3D
- BindToAnchoredPosition3DX
- BindToAnchoredPosition3DY
- BindToAnchoredPosition3DZ
- BindToAnchorMin
- BindToAnchorMax
- BindToSizeDelta
- BindToSizeDeltaX
- BindToSizeDeltaY
- BindToPivot
- BindToPivotX
- BindToPivotY
BindToAnchoredPosition
Schedule a tween that writes the interpolated value to AnchoredPosition on the bound target and return its MotionHandle.
public static MotionHandle BindToAnchoredPosition<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, RectTransform rectTransform)
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.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
BindToAnchoredPositionX
Schedule a tween that writes the interpolated value to AnchoredPositionX on the bound target and return its MotionHandle.
public static MotionHandle BindToAnchoredPositionX(this FloatMotionBuilder builder, RectTransform rectTransform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToAnchoredPositionX<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, RectTransform rectTransform)
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.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
BindToAnchoredPositionY
Schedule a tween that writes the interpolated value to AnchoredPositionY on the bound target and return its MotionHandle.
public static MotionHandle BindToAnchoredPositionY(this FloatMotionBuilder builder, RectTransform rectTransform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToAnchoredPositionY<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, RectTransform rectTransform)
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.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
BindToAnchoredPosition3D
Schedule a tween that writes the interpolated value to AnchoredPosition3D on the bound target and return its MotionHandle.
public static MotionHandle BindToAnchoredPosition3D<TOptions, TAdapter>(this MotionBuilder<Vector3, TOptions, TAdapter> builder, RectTransform rectTransform)
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.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
BindToAnchoredPosition3DX
Schedule a tween that writes the interpolated value to AnchoredPosition3DX on the bound target and return its MotionHandle.
public static MotionHandle BindToAnchoredPosition3DX(this FloatMotionBuilder builder, RectTransform rectTransform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToAnchoredPosition3DX<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, RectTransform rectTransform)
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.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
BindToAnchoredPosition3DY
Schedule a tween that writes the interpolated value to AnchoredPosition3DY on the bound target and return its MotionHandle.
public static MotionHandle BindToAnchoredPosition3DY(this FloatMotionBuilder builder, RectTransform rectTransform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToAnchoredPosition3DY<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, RectTransform rectTransform)
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.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
BindToAnchoredPosition3DZ
Schedule a tween that writes the interpolated value to AnchoredPosition3DZ on the bound target and return its MotionHandle.
public static MotionHandle BindToAnchoredPosition3DZ(this FloatMotionBuilder builder, RectTransform rectTransform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToAnchoredPosition3DZ<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, RectTransform rectTransform)
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.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
BindToAnchorMin
Schedule a tween that writes the interpolated value to AnchorMin on the bound target and return its MotionHandle.
public static MotionHandle BindToAnchorMin<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, RectTransform rectTransform)
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.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
BindToAnchorMax
Schedule a tween that writes the interpolated value to AnchorMax on the bound target and return its MotionHandle.
public static MotionHandle BindToAnchorMax<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, RectTransform rectTransform)
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.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
BindToSizeDelta
Schedule a tween that writes the interpolated value to SizeDelta on the bound target and return its MotionHandle.
public static MotionHandle BindToSizeDelta<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, RectTransform rectTransform)
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.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
BindToSizeDeltaX
Schedule a tween that writes the interpolated value to SizeDeltaX on the bound target and return its MotionHandle.
public static MotionHandle BindToSizeDeltaX(this FloatMotionBuilder builder, RectTransform rectTransform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToSizeDeltaX<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, RectTransform rectTransform)
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.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
BindToSizeDeltaY
Schedule a tween that writes the interpolated value to SizeDeltaY on the bound target and return its MotionHandle.
public static MotionHandle BindToSizeDeltaY(this FloatMotionBuilder builder, RectTransform rectTransform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToSizeDeltaY<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, RectTransform rectTransform)
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.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
BindToPivot
Schedule a tween that writes the interpolated value to Pivot on the bound target and return its MotionHandle.
public static MotionHandle BindToPivot<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, RectTransform rectTransform)
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.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
BindToPivotX
Schedule a tween that writes the interpolated value to PivotX on the bound target and return its MotionHandle.
public static MotionHandle BindToPivotX(this FloatMotionBuilder builder, RectTransform rectTransform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToPivotX<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, RectTransform rectTransform)
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.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
BindToPivotY
Schedule a tween that writes the interpolated value to PivotY on the bound target and return its MotionHandle.
public static MotionHandle BindToPivotY(this FloatMotionBuilder builder, RectTransform rectTransform)Parameters and return value
builderthis FloatMotionBuilderConfigured builder, passed as the receiver for extension calls.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
public static MotionHandle BindToPivotY<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, RectTransform rectTransform)
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.rectTransformRectTransformTarget RectTransform that receives the update.- Returns
MotionHandle
MeatMotion