Experimental: this API is experimental and might be changed or removed in the future.

ITransitionAnimations.Start

Declaration

public ValueAnimation<float> Start(float from, float to, int durationMs, Action<VisualElement,float> onValueChanged);

Parameters

from Start value.
to End value.
durationMs Duration of the transition in milliseconds.
onValueChanged Callback that applies the interpolated value.

Returns

ValueAnimation<float> The created animation object.

Description

Starts a transition animation on this VisualElement.


Declaration

public ValueAnimation<Rect> Start(Rect from, Rect to, int durationMs, Action<VisualElement,Rect> onValueChanged);

Parameters

from Start value.
to End value.
durationMs Duration of the transition in milliseconds.
onValueChanged Callback that applies the interpolated value.

Returns

ValueAnimation<Rect> The created animation object.

Description

Starts a transition animation on this VisualElement.


Declaration

public ValueAnimation<Color> Start(Color from, Color to, int durationMs, Action<VisualElement,Color> onValueChanged);

Parameters

from Start value.
to End value.
durationMs Duration of the transition in milliseconds.
onValueChanged Callback that applies the interpolated value.

Returns

ValueAnimation<Color> The created animation object.

Description

Starts a transition animation on this VisualElement.


Declaration

public ValueAnimation<Vector3> Start(Vector3 from, Vector3 to, int durationMs, Action<VisualElement,Vector3> onValueChanged);

Parameters

from Start value.
to End value.
durationMs Duration of the transition in milliseconds.
onValueChanged Callback that applies the interpolated value.

Returns

ValueAnimation<Vector3> The created animation object.

Description

Starts a transition animation on this VisualElement.


Declaration

public ValueAnimation<Vector2> Start(Vector2 from, Vector2 to, int durationMs, Action<VisualElement,Vector2> onValueChanged);

Parameters

from Start value.
to End value.
durationMs Duration of the transition in milliseconds.
onValueChanged Callback that applies the interpolated value.

Returns

ValueAnimation<Vector2> The created animation object.

Description

Starts a transition animation on this VisualElement.


Declaration

public ValueAnimation<Quaternion> Start(Quaternion from, Quaternion to, int durationMs, Action<VisualElement,Quaternion> onValueChanged);

Parameters

from Start value.
to End value.
durationMs Duration of the transition in milliseconds.
onValueChanged Callback that applies the interpolated value.

Returns

ValueAnimation<Quaternion> The created animation object.

Description

Starts a transition animation on this VisualElement.


Declaration

public ValueAnimation<StyleValues> Start(UIElements.Experimental.StyleValues from, UIElements.Experimental.StyleValues to, int durationMs);

Parameters

from Start value.
to End value.
durationMs Duration of the transition in milliseconds.

Returns

ValueAnimation<StyleValues> The created animation object.

Description

Starts a transition animation on this VisualElement.


Declaration

public ValueAnimation<StyleValues> Start(UIElements.Experimental.StyleValues to, int durationMs);

Parameters

to End value.
durationMs Duration of the transition in milliseconds.

Returns

ValueAnimation<StyleValues> The created animation object.

Description

Starts a transition animation on this VisualElement.


Declaration

public ValueAnimation<float> Start(Func<VisualElement,float> fromValueGetter, float to, int durationMs, Action<VisualElement,float> onValueChanged);

Parameters

fromValueGetter Callback that provides the initial value.
to End value.
durationMs Duration of the transition in milliseconds.
onValueChanged Callback that applies the interpolated value.

Returns

ValueAnimation<float> The created animation object.

Description

Starts a transition animation on this VisualElement.


Declaration

public ValueAnimation<Rect> Start(Func<VisualElement,Rect> fromValueGetter, Rect to, int durationMs, Action<VisualElement,Rect> onValueChanged);

Parameters

fromValueGetter Callback that provides the initial value.
to End value.
durationMs Duration of the transition in milliseconds.
onValueChanged Callback that applies the interpolated value.

Returns

ValueAnimation<Rect> The created animation object.

Description

Starts a transition animation on this VisualElement.


Declaration

public ValueAnimation<Color> Start(Func<VisualElement,Color> fromValueGetter, Color to, int durationMs, Action<VisualElement,Color> onValueChanged);

Parameters

fromValueGetter Callback that provides the initial value.
to End value.
durationMs Duration of the transition in milliseconds.
onValueChanged Callback that applies the interpolated value.

Returns

ValueAnimation<Color> The created animation object.

Description

Starts a transition animation on this VisualElement.


Declaration

public ValueAnimation<Vector3> Start(Func<VisualElement,Vector3> fromValueGetter, Vector3 to, int durationMs, Action<VisualElement,Vector3> onValueChanged);

Parameters

fromValueGetter Callback that provides the initial value.
to End value.
durationMs Duration of the transition in milliseconds.
onValueChanged Callback that applies the interpolated value.

Returns

ValueAnimation<Vector3> The created animation object.

Description

Starts a transition animation on this VisualElement.


Declaration

public ValueAnimation<Vector2> Start(Func<VisualElement,Vector2> fromValueGetter, Vector2 to, int durationMs, Action<VisualElement,Vector2> onValueChanged);

Parameters

fromValueGetter Callback that provides the initial value.
to End value.
durationMs Duration of the transition in milliseconds.
onValueChanged Callback that applies the interpolated value.

Returns

ValueAnimation<Vector2> The created animation object.

Description

Starts a transition animation on this VisualElement.


Declaration

public ValueAnimation<Quaternion> Start(Func<VisualElement,Quaternion> fromValueGetter, Quaternion to, int durationMs, Action<VisualElement,Quaternion> onValueChanged);

Parameters

fromValueGetter Callback that provides the initial value.
to End value.
durationMs Duration of the transition in milliseconds.
onValueChanged Callback that applies the interpolated value.

Returns

ValueAnimation<Quaternion> The created animation object.

Description

Starts a transition animation on this VisualElement.


Did you find this page useful? Please give it a rating: