UxrImageFillTween.Animate Method
Creates and starts a tweening animation for the fillAmount value in an Image component.
Namespace: UltimateXR.Animation.UI
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static UxrImageFillTween Animate(
Image image,
float startFillAmount,
float endFillAmount,
UxrInterpolationSettings settings,
Action<UxrTween> finishedCallback = null
)
Parameters
- image
- Type: Image
Target image - startFillAmount
- Type: System.Single
Start fill amount - endFillAmount
- Type: System.Single
End fill amount - settings
- Type: UltimateXR.Animation.Interpolation.UxrInterpolationSettings
Interpolation settings that control the animation - finishedCallback (Optional)
- Type: System.Action(UxrTween)
Optional callback when the animation finished
Return Value
Type: UxrImageFillTween
Tweening component that will update itself automatically. Can be used to stop the animation prematurely or change parameters on the fly.