Version: 1.3
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

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.