Version: 2022.1
LanguageEnglish
  • C#
Experimental: this API is experimental and might be changed or removed in the future.

ITransitionAnimations.Start

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

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.