This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

ITransitionAnimations.Start

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.


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.


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.


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.


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.


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.


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.


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.


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.


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.


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.


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.