TweenUtil2.cpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright 2021-2022, DearBing. All Rights Reserved.
  2. #include "TweenUtil2.h"
  3. UTweenCanvasPanelSlot* UTweenUtil2::DOMoveSync(float DurTime /*= 1*/, UCanvasPanelSlot* CanvasPanelSlot /*= nullptr*/, FVector2D End /*= FVector2D(100, 100)*/, EaseType easeType /*= EaseType::Linear*/, bool IsLoop /*= false*/)
  4. {
  5. return UTweenCanvasPanelSlot::DOMove(DurTime, CanvasPanelSlot, End, easeType, IsLoop);
  6. }
  7. UTweenCanvasPanelSlot* UTweenUtil2::DOSizeSync(float DurTime /*= 1*/, UCanvasPanelSlot* CanvasPanelSlot /*= nullptr*/, FVector2D End /*= FVector2D(100, 100)*/, EaseType easeType /*= EaseType::Linear*/, bool IsLoop /*= false*/)
  8. {
  9. return UTweenCanvasPanelSlot::DOSize(DurTime, CanvasPanelSlot, End, easeType, IsLoop);
  10. }
  11. UTweenWidget* UTweenUtil2::DOLocalMoveSync(float DurTime /*= 1*/, UWidget* UI /*= nullptr*/, FVector2D End /*= FVector2D(100, 100)*/, EaseType easeType /*= EaseType::Linear*/, bool IsLoop /*= false*/)
  12. {
  13. return UTweenWidget::DOLocalMove(DurTime, UI, End, easeType, IsLoop);
  14. }
  15. UTweenWidget* UTweenUtil2::DOLocalAngleSync(float DurTime /*= 1*/, UWidget* UI /*= nullptr*/, float End /*= 90*/, EaseType easeType /*= EaseType::Linear*/, bool IsLoop /*= false*/)
  16. {
  17. return UTweenWidget::DOLocalAngle(DurTime, UI, End, easeType, IsLoop);
  18. }
  19. UTweenWidget* UTweenUtil2::DOLocalScaleSync(float DurTime /*= 1*/, UWidget* UI /*= nullptr*/, FVector2D End /*= FVector2D(2, 2)*/, EaseType easeType /*= EaseType::Linear*/, bool IsLoop /*= false*/)
  20. {
  21. return UTweenWidget::DOLocalScale(DurTime, UI, End, easeType, IsLoop);
  22. }
  23. UTweenWidget* UTweenUtil2::DOFadeSync(float DurTime /*= 1*/, UWidget* UI /*= nullptr*/, float End /*= 1*/, EaseType easeType /*= EaseType::Linear*/, bool IsLoop /*= false*/)
  24. {
  25. return UTweenWidget::DOFade(DurTime, UI, End, easeType, IsLoop);
  26. }