MeatMotion

UIToolkitMotionExtensions

Bind tween values to UI Toolkit styles, transforms, text and progress bars.

Namespace
MeatMotion.Extensions
Assembly
MeatMotion

Jump to members

public static class UIToolkitMotionExtensions

Requires com.unity.modules.uielements

UIToolkitMotionExtensions.cs · L9

Members

BindToStyleLeft

Schedule a tween that writes the interpolated value to StyleLeft on the bound target and return its MotionHandle.

public static MotionHandle BindToStyleLeft(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleLeft<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleRight

Schedule a tween that writes the interpolated value to StyleRight on the bound target and return its MotionHandle.

public static MotionHandle BindToStyleRight(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleRight<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleTop

Schedule a tween that writes the interpolated value to StyleTop on the bound target and return its MotionHandle.

public static MotionHandle BindToStyleTop(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleTop<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleBottom

Schedule a tween that writes the interpolated value to StyleBottom on the bound target and return its MotionHandle.

public static MotionHandle BindToStyleBottom(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleBottom<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleWidth

Schedule a tween that writes the interpolated value to StyleWidth on the bound target and return its MotionHandle.

public static MotionHandle BindToStyleWidth(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleWidth<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleHeight

Schedule a tween that writes the interpolated value to StyleHeight on the bound target and return its MotionHandle.

public static MotionHandle BindToStyleHeight(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleHeight<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleOpacity

Schedule a tween that writes the interpolated value to StyleOpacity on the bound target and return its MotionHandle.

public static MotionHandle BindToStyleOpacity(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleOpacity<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleFontSize

Schedule a tween that writes the interpolated value to StyleFontSize on the bound target and return its MotionHandle.

public static MotionHandle BindToStyleFontSize(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleFontSize<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleWordSpacing

Schedule a tween that writes the interpolated value to StyleWordSpacing on the bound target and return its MotionHandle.

public static MotionHandle BindToStyleWordSpacing(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleWordSpacing<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleColor

Schedule a tween that writes the interpolated value to StyleColor on the bound target and return its MotionHandle.

public static MotionHandle BindToStyleColor<TOptions, TAdapter>(this MotionBuilder<Color, TOptions, TAdapter> builder, VisualElement visualElement)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Color, TOptions>
Parameters and return value
builder
this MotionBuilder<Color, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleColorR

Update only the R channel of StyleColor, retaining the other color components.

public static MotionHandle BindToStyleColorR(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleColorR<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleColorG

Update only the G channel of StyleColor, retaining the other color components.

public static MotionHandle BindToStyleColorG(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleColorG<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleColorB

Update only the B channel of StyleColor, retaining the other color components.

public static MotionHandle BindToStyleColorB(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleColorB<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleColorA

Update only the A channel of StyleColor, retaining the other color components.

public static MotionHandle BindToStyleColorA(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleColorA<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleBackgroundColor

Schedule a tween that writes the interpolated value to StyleBackgroundColor on the bound target and return its MotionHandle.

public static MotionHandle BindToStyleBackgroundColor<TOptions, TAdapter>(this MotionBuilder<Color, TOptions, TAdapter> builder, VisualElement visualElement)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Color, TOptions>
Parameters and return value
builder
this MotionBuilder<Color, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleBackgroundColorR

Update only the R channel of StyleBackgroundColor, retaining the other color components.

public static MotionHandle BindToStyleBackgroundColorR(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleBackgroundColorR<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleBackgroundColorG

Update only the G channel of StyleBackgroundColor, retaining the other color components.

public static MotionHandle BindToStyleBackgroundColorG(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleBackgroundColorG<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleBackgroundColorB

Update only the B channel of StyleBackgroundColor, retaining the other color components.

public static MotionHandle BindToStyleBackgroundColorB(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleBackgroundColorB<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleBackgroundColorA

Update only the A channel of StyleBackgroundColor, retaining the other color components.

public static MotionHandle BindToStyleBackgroundColorA(this FloatMotionBuilder builder, VisualElement visualElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleBackgroundColorA<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleTranslate

Schedule a tween that writes the interpolated value to StyleTranslate on the bound target and return its MotionHandle.

public static MotionHandle BindToStyleTranslate<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleTranslate<TOptions, TAdapter>(this MotionBuilder<Vector3, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleTransformOrigin

Schedule a tween that writes the interpolated value to StyleTransformOrigin on the bound target and return its MotionHandle.

public static MotionHandle BindToStyleTransformOrigin<TOptions, TAdapter>(this MotionBuilder<Vector2, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToStyleTransformOrigin<TOptions, TAdapter>(this MotionBuilder<Vector3, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleScale

Schedule a tween that writes the interpolated value to StyleScale on the bound target and return its MotionHandle.

public static MotionHandle BindToStyleScale<TOptions, TAdapter>(this MotionBuilder<Vector3, TOptions, TAdapter> builder, VisualElement visualElement)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
Returns
MotionHandle

BindToStyleRotate

Schedule a tween that writes the interpolated value to StyleRotate on the bound target and return its MotionHandle.

public static MotionHandle BindToStyleRotate(this FloatMotionBuilder builder, VisualElement visualElement, AngleUnit angleUnit = AngleUnit.Degree)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
visualElement
VisualElement Target VisualElement that receives the update.
angleUnit = AngleUnit.Degree
AngleUnit Unit used to interpret the UI Toolkit angle.
Returns
MotionHandle
public static MotionHandle BindToStyleRotate<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, VisualElement visualElement, AngleUnit angleUnit = AngleUnit.Degree)
    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.
visualElement
VisualElement Target VisualElement that receives the update.
angleUnit = AngleUnit.Degree
AngleUnit Unit used to interpret the UI Toolkit angle.
Returns
MotionHandle

BindToProgressBar

Schedule a tween that writes the interpolated value to ProgressBar on the bound target and return its MotionHandle.

public static MotionHandle BindToProgressBar(this FloatMotionBuilder builder, AbstractProgressBar progressBar)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
progressBar
AbstractProgressBar Target AbstractProgressBar that receives the update.
Returns
MotionHandle
public static MotionHandle BindToProgressBar<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, AbstractProgressBar progressBar)
    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.
progressBar
AbstractProgressBar Target AbstractProgressBar that receives the update.
Returns
MotionHandle

BindToText

Write interpolated text or a formatted numeric value to the text component.

public static MotionHandle BindToText<TOptions, TAdapter>(this MotionBuilder<FixedString32Bytes, TOptions, TAdapter> builder, TextElement textElement)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<FixedString32Bytes, TOptions>
Parameters and return value
builder
this MotionBuilder<FixedString32Bytes, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
textElement
TextElement Target TextElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToText<TOptions, TAdapter>(this MotionBuilder<FixedString64Bytes, TOptions, TAdapter> builder, TextElement textElement)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<FixedString64Bytes, TOptions>
Parameters and return value
builder
this MotionBuilder<FixedString64Bytes, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
textElement
TextElement Target TextElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToText<TOptions, TAdapter>(this MotionBuilder<FixedString128Bytes, TOptions, TAdapter> builder, TextElement textElement)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<FixedString128Bytes, TOptions>
Parameters and return value
builder
this MotionBuilder<FixedString128Bytes, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
textElement
TextElement Target TextElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToText<TOptions, TAdapter>(this MotionBuilder<FixedString512Bytes, TOptions, TAdapter> builder, TextElement textElement)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<FixedString512Bytes, TOptions>
Parameters and return value
builder
this MotionBuilder<FixedString512Bytes, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
textElement
TextElement Target TextElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToText<TOptions, TAdapter>(this MotionBuilder<FixedString4096Bytes, TOptions, TAdapter> builder, TextElement textElement)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<FixedString4096Bytes, TOptions>
Parameters and return value
builder
this MotionBuilder<FixedString4096Bytes, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
textElement
TextElement Target TextElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToText<TOptions, TAdapter>(this MotionBuilder<int, TOptions, TAdapter> builder, TextElement textElement)
    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.
textElement
TextElement Target TextElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToText<TOptions, TAdapter>(this MotionBuilder<int, TOptions, TAdapter> builder, TextElement textElement, string format)
    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.
textElement
TextElement Target TextElement that receives the update.
format
string Format string for converting the sampled value to text.
Returns
MotionHandle
public static MotionHandle BindToText<TOptions, TAdapter>(this MotionBuilder<long, TOptions, TAdapter> builder, TextElement textElement)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<long, TOptions>
Parameters and return value
builder
this MotionBuilder<long, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
textElement
TextElement Target TextElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToText<TOptions, TAdapter>(this MotionBuilder<long, TOptions, TAdapter> builder, TextElement textElement, string format)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<long, TOptions>
Parameters and return value
builder
this MotionBuilder<long, TOptions, TAdapter> Configured builder, passed as the receiver for extension calls.
textElement
TextElement Target TextElement that receives the update.
format
string Format string for converting the sampled value to text.
Returns
MotionHandle
public static MotionHandle BindToText(this FloatMotionBuilder builder, TextElement textElement)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
textElement
TextElement Target TextElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToText<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, TextElement textElement)
    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.
textElement
TextElement Target TextElement that receives the update.
Returns
MotionHandle
public static MotionHandle BindToText(this FloatMotionBuilder builder, TextElement textElement, string format)
Parameters and return value
builder
this FloatMotionBuilder Configured builder, passed as the receiver for extension calls.
textElement
TextElement Target TextElement that receives the update.
format
string Format string for converting the sampled value to text.
Returns
MotionHandle
public static MotionHandle BindToText<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, TextElement textElement, string format)
    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.
textElement
TextElement Target TextElement that receives the update.
format
string Format string for converting the sampled value to text.
Returns
MotionHandle